[TextInput] Blur event is broken in v0.57.6
See original GitHub issue- Review the documentation: https://facebook.github.io/react-native
- Search for existing issues: https://github.com/facebook/react-native/issues
- Use the latest React Native release: https://github.com/facebook/react-native/releases
Environment
React Native Environment Info:
System:
OS: Windows 10
CPU: (4) x64 Intel(R) Core(TM) i5-5200U CPU @ 2.20GHz
Memory: 4.29 GB / 11.87 GB
Binaries:
Yarn: 1.12.3 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
npm: 6.4.1 - C:\Program Files\nodejs\npm.CMD
IDEs:
Android Studio: Version 3.1.0.0 AI-173.4907809
npmPackages:
react: 16.6.1 => 16.6.1
react-native: 0.57.6 => 0.57.6
Description
The input is not focused after the blur event with the done button. Blur event was broken with this commit,
Reproducible Demo
- Focus the input
- Press the done button in keyboard
- Try focus the input again
Issue Analytics
- State:
- Created 5 years ago
- Reactions:2
- Comments:11 (7 by maintainers)
Top Results From Across the Web
How do I get the value in TextInput when onBlur is called?
In React Native, I want to pass the value of the TextInput in the onBlur event handler ...
Read more >Element: blur event - Web APIs | MDN
The blur event fires when an element has lost focus. The event does not bubble, but the related focusout event that follows does...
Read more >onblur Event - W3Schools
The onblur event occurs when an element loses focus. The onblur event is often used on input fields. The onblur event is often...
Read more >.blur() | jQuery API Documentation
The blur event is sent to an element when it loses focus. Originally, this event was only applicable to form elements, such as...
Read more >Using the 'onblur' event in JavaScript - YouTube
The ' onblur ' event in JavaScript allows you to react whenever an input field loses focus - this is especially useful in...
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
@Minishlink absolutely, the issue should get a proper fix: but that needs to be a PR to master and fix it ‘once and for all’.
This revert & new release is to simply prevent people from facing it in 0.57.patch - now that we are aware of the fact of that commit being broken, I’ll leave this issue open so that we can properly fix it.
@ahce let me know if 0.57.7 works fine for you now (I just created a test project and was able to repro, and updating to 0.57.7 fixed this)
@kelset works fine in 0.57.7, Thanks!