Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Focus jumps between TextInputs #2162

Closed
maevic opened this issue Nov 8, 2021 · 2 comments
Closed

Focus jumps between TextInputs #2162

maevic opened this issue Nov 8, 2021 · 2 comments
Milestone

Comments

@maevic
Copy link

maevic commented Nov 8, 2021

The problem

Adding the property selectTextOnFocus to multiple TextInputs can cause the focus to jump between them indefinitely.

How to reproduce

Simplified test case:
https://codesandbox.io/s/nifty-kowalevski-tbmev

Video:
screen

Steps to reproduce:

  1. Click in first input
  2. Click another window, so the browser looses the focus
  3. Click in second input
  4. The focus should now jump between them

Expected behavior

The last clicked input should get the focus.

Environment (include versions). Did this work in previous versions?

  • React Native for Web (version): 0.17.5
  • React (version): 17.0.2
  • Browser: Chromium version 95.0.4638.54
@necolas necolas added this to the 0.17.x milestone Feb 17, 2022
@necolas
Copy link
Owner

necolas commented Feb 17, 2022

I cant reproduce this on macOS. Are you on Linux?

@maevic
Copy link
Author

maevic commented Feb 18, 2022

Yes, I am on Linux. If I recall correctly the issue occurred on Windows as well, but I'm not entirely sure about that. Anyway, thanks for your help.

rnike pushed a commit to VeryBuy/react-native-web that referenced this issue Sep 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants