Skip to content

Commit

Permalink
[fix] Allow TextInput to dispatch 'submit' event
Browse files Browse the repository at this point in the history
Close #2371
  • Loading branch information
mdneyazahmad authored and necolas committed Aug 25, 2022
1 parent b6c8da8 commit c764f96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react-native-web/src/exports/TextInput/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ const TextInput: React.AbstractComponent<
onSubmitEditing(e);
}
if (shouldBlurOnSubmit && hostNode != null) {
hostNode.blur();
setTimeout(() => hostNode.blur(), 0);
}
}
}
Expand Down

0 comments on commit c764f96

Please sign in to comment.