[RN 0.48.3 TextInput] onSubmitEditing not called if blurOnSubmit set to false
See original GitHub issueIs this a bug report?
Yes
Have you read the Contributing Guidelines?
Yes
Environment
react-native -v: 0.48.3 node -v: 8.4.0 npm -v: 4.6.1 yarn --version: Target Platform: Android Development Operating System: Windows 10 Build tools: react-native run-android
Steps to Reproduce
<TextInput placeholder="one" blurOnSubmit={ false } onSubmitEditing={() => { this.focusNextField('two'); }} returnKeyType={ "next" } style={styles.textInput} ref={ input => { this.inputs['one'] = input; }} /> <TextInput placeholder="two" blurOnSubmit={ false } onSubmitEditing={() => { this.focusNextField('three'); }} returnKeyType={ "next" } style={styles.textInput} ref={ input => { this.inputs['two'] = input; }} />
- If I press the next button onSubmitEditing callback not called
Expected Behavior
onSubmitEditing should be called for blurOnSubmit={false} text inputs In other versions it works normally, in 48.3 I need to remove the blurOnSubmit = {false} so that the focus goes to the next input
Reproducible Demo
https://medium.com/reactnative/tabbing-through-input-fields-ef283f923ab1
Issue Analytics
- State:
- Created 6 years ago
- Reactions:26
- Comments:25 (6 by maintainers)
Top GitHub Comments
still not work in RN 0.49.3 (android 7.1.2)
+1 I tested in RN 0.49, I had the same problem!