You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
When I added enter to the trio, I got the behavior that my users want:
if (['type', 'click', 'escape', 'enter'].includes(method)) {
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 enter method. I'm considering, if it's not possible to add enter in react-admin source code, I probably will have to copy the implementation of AutocompleteInput to my project to override just that single line.
The text was updated successfully, but these errors were encountered:
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
enter
to 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
enter
method. I'm considering, if it's not possible to addenter
in react-admin source code, I probably will have to copy the implementation of AutocompleteInput to my project to override just that single line.The text was updated successfully, but these errors were encountered: