Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign up
Not sure if this is a bug or is intended.
User context
My users would navigate up and down the suggestion list using the UpArrow and DownArrow key. When they see their desired choice, they hit Enter. However, that choice/that selection is not recorded. The only to way to record it is to reach for the mouse and click on the item.
My troubleshooting
I went into the source code of AutocompleteInput v2.x and found this code is what causes that behavior:
When I added
enterto the trio, I got the behavior that my users want:My ask
Before viewing this as a bug or a feature request, I'd love to know if react-admin team had some rationale for including these 3 methods but not the
entermethod. I'm considering, if it's not possible to addenterin react-admin source code, I probably will have to copy the implementation of AutocompleteInput to my project to override just that single line.