The problem
Using accessibilityRole="form" with onSubmit={someHandler}, someHandler is not called when hitting the return key in a nested TextInput.
How to reproduce
Simplified test case: https://codesandbox.io/s/6y37n189kn
Steps to reproduce:
- Go to the codesanbox link
- Type in the input field
- Hit your enter/return key to submit the form
Expected behavior
Expectation is that the onSubmit handler is called and the event is prevented.
Actual behavior
The page is submitted and reloaded.
Environment (include versions). Did this work in previous versions?
The problem
Using
accessibilityRole="form"withonSubmit={someHandler},someHandleris not called when hitting the return key in a nestedTextInput.How to reproduce
Simplified test case: https://codesandbox.io/s/6y37n189kn
Steps to reproduce:
Expected behavior
Expectation is that the
onSubmithandler is called and the event is prevented.Actual behavior
The page is submitted and reloaded.
Environment (include versions). Did this work in previous versions?