Skip to content

Conversation

@pakerwreah
Copy link
Contributor

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)

Comment on lines +665 to +667
if (index === -1) {
index = DEFAULT_KEYBOARD_INDEX;
}
Copy link
Contributor Author

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.

@github-actions
Copy link

github-actions bot commented Oct 6, 2025

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.

@pakerwreah
Copy link
Contributor Author

not stale

@pakerwreah pakerwreah marked this pull request as draft October 6, 2025 13:13
@pakerwreah pakerwreah marked this pull request as ready for review October 6, 2025 13:13
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

Successfully merging this pull request may close these issues.

[Bug]: wrong index reported by modal + TextInput + autofocus (v5.2.6)

1 participant