-
-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
AutocompleteInput don't keep focus with mouse #9715
Labels
Comments
reproduced, thanks 👍 |
I can reproduce on AutocompleteInput but not on SelectInput |
My bad, only AutocompleteInput has the bug. |
Nitix
changed the title
SelectInput and AutocompleteInput don't keep focus with mouse
AutocompleteInput don't keep focus with mouse
Mar 12, 2024
This is the culprit:
Now why did we add this? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What you were expecting:
Focus stays in the autocomplete input when selecting an option with mouse
What happened instead:
Component loses the focus and the focus goes to the first element of the page breaking tab navigation
Steps to reproduce:
Go to a form, click on an input with options like SelectInput or AutocompleteInput, select an option, then press tab to try to go to next input. But it fails to do so.
Related code:
No code modification form code sandox https://stackblitz.com/github/marmelab/react-admin/tree/master/examples/simple?file=README.md
Other information:
Screencast.from.2024-03-12.17-09-50.webm
Environment
The text was updated successfully, but these errors were encountered: