[0.49.1] TextInput > onSubmitEditing prop broken on Android when blurOnSubmit={false}
See original GitHub issueIs this a bug report?
Yes
Have you read the Contributing Guidelines?
Yes
Environment
Environment: OS: macOS Sierra 10.12.6 Node: 8.6.0 Yarn: 1.1.0 npm: 5.4.2 Watchman: 4.9.0 Xcode: Xcode 9.0 Build version 9A235 Android Studio: 2.3 AI-162.4069837
Packages: (wanted => installed) react: 16.0.0-beta.5 => 16.0.0-beta.5 react-native: 0.49.1 => 0.49.1
Target Platform: Android
Steps to Reproduce
import { TextInput } from 'react-native';
<TextInput
...
blurOnSubmit={false}
onSubmitEditing={() => {alert('I never get called')}}
..
/>
The alert never gets called when the user presses “Done” / “Next” / “Return” on the keyboard.
Issue Analytics
- State:
- Created 6 years ago
- Comments:8 (2 by maintainers)
Top Results From Across the Web
onSubmitEditing not working on TextInput when Multiline= ...
If the Textinput's Multiline is set to true, onSubmitEditing prop won't work. Since multiline requires Return key to jump to the next line....
Read more >TextInput
A foundational component for inputting text into the app via a keyboard. Props provide configurability for several features, ...
Read more >Android onSubmitEditing
import { Text, TextInput, View, StyleSheet. } from 'react-native';. import { Constants } from 'expo';. export default class App extends Component.
Read more >Focus on the Next TextInput when Next Keyboard Button is ...
We will use a combination of refs, `onSubmitEditing` callback, `returnKeyType`, and `blurOnSubmit` to move between text inputs when submitted.
Read more >A complete guide to TextInput in React Native
In this article, you will learn the basics of React Native's TextInput component. Later on, we will also tailor its properties according to...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi guys ! Here is the commit 4d54b48 I would love to see it in a minor release too. Otherwise, I will have to use v0.50.0-rc.0 because this bug is critical for my app.
Hey, not really, I had to upgrade RN. Sorry ! I think you should be fine with RN 0.50+