Skip to content

AutocompleteInput don't keep focus with mouse #9715

@Nitix

Description

@Nitix

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

  • React-admin version: 4.16.12
  • Last version that did not exhibit the issue (if applicable):
  • React version: 18
  • Browser: Firefox 123
  • Stack trace (in case of a JS error):

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions