Is there an existing issue for this?
Describe the issue
React Native has deprecated the blurOnSubmit prop for TextInput. Migrate deprecated blurOnSubmit to submitBehavior.
According to the React Native docs, for multiline inputs, setting blurOnSubmit: true should be equivalent to using submitBehavior="blurAndSubmit"
In the web, a standard HTML <input>/<textarea> doesn’t have an equivalent submitBehavior property.
=> when set submitBehavior="blurAndSubmit" for text input and press enter, it will go to next line instead of submit
Expected behavior
When pressing enter, it will submit
Steps to reproduce
- Create a TextInput with submitBehavior="blurAndSubmit"
- Press Enter key
Test case
https://codesandbox.io/p/devbox/sharp-nobel-p8z4s9
Additional comments
No response
Is there an existing issue for this?
Describe the issue
React Native has deprecated the blurOnSubmit prop for TextInput. Migrate deprecated blurOnSubmit to submitBehavior.
According to the React Native docs, for multiline inputs, setting
blurOnSubmit: trueshould be equivalent to usingsubmitBehavior="blurAndSubmit"In the web, a standard HTML
<input>/<textarea>doesn’t have an equivalentsubmitBehaviorproperty.=> when set
submitBehavior="blurAndSubmit"for text input and press enter, it will go to next line instead of submitExpected behavior
When pressing enter, it will submit
Steps to reproduce
Test case
https://codesandbox.io/p/devbox/sharp-nobel-p8z4s9
Additional comments
No response