question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[0.49.1] TextInput > onSubmitEditing prop broken on Android when blurOnSubmit={false}

See original GitHub issue

Is 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:closed
  • Created 6 years ago
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
eeynardcommented, Oct 16, 2017

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.

1reaction
eeynardcommented, Jan 25, 2018

Hey, not really, I had to upgrade RN. Sorry ! I think you should be fine with RN 0.50+

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found