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.

[TextInput] Blur event is broken in v0.57.6

See original GitHub issue

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

  1. Focus the input
  2. Press the done button in keyboard
  3. Try focus the input again

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:11 (7 by maintainers)

github_iconTop GitHub Comments

3reactions
kelsetcommented, Nov 27, 2018

@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)

1reaction
ahcecommented, Nov 27, 2018

@kelset works fine in 0.57.7, Thanks!

Read more comments on GitHub >

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

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