-
-
Notifications
You must be signed in to change notification settings - Fork 922
fix(#2455): wrong index reported by modal + TextInput + autofocus #2456
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
base: master
Are you sure you want to change the base?
fix(#2455): wrong index reported by modal + TextInput + autofocus #2456
Conversation
| if (index === -1) { | ||
| index = DEFAULT_KEYBOARD_INDEX; | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I kept this "default index" fallback, but tbh I'm not sure what is its purpose.
I'd rather have -1 instead of a "random" number if things go bad.
|
This PR is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 10 days. |
|
not stale |
|
This PR is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 10 days. |
|
not stale |
|
This PR is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 10 days. |
|
not stale |
Fix #2455
Motivation
The new fallback logic to fix TextInput with autofocus is mixing "position" with "index", leading to corrupted behavior.
(see issue for more details)