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

[NumberField, Form] Select input value when returning focus #1068

Open
vladmoroz opened this issue Dec 12, 2024 · 0 comments
Open

[NumberField, Form] Select input value when returning focus #1068

vladmoroz opened this issue Dec 12, 2024 · 0 comments
Labels
enhancement This is not a bug, nor a new feature

Comments

@vladmoroz
Copy link
Contributor

vladmoroz commented Dec 12, 2024

Number Field focuses the input when increment/decrement is clicked
Form (?) focuses the invalid input when it fails validation, maintaining the previous text cursor/selection position—which is odd/random

The UX would be better if in both cases, the inputs were selected instead of just being focused

https://base-ui.com/react/components/form
https://base-ui.com/react/components/number-field

Search keywords:

@vladmoroz vladmoroz added the enhancement This is not a bug, nor a new feature label Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement This is not a bug, nor a new feature
Projects
None yet
Development

No branches or pull requests

1 participant