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
Autocomplete control - keydown skips the first option
Steps to reproduce the problem reproduce the problem):
-Click on the control with mouse
** A list appears at the bottom
-Press down arrow key
** The text control looses focus
-Press down arrow key again
** Second option gets selected
How do I fix this so that it selects the first option in the list.
If I set openOnFocus to false the problem goes away.
Link to minimally-working code that reproduces the issue
I have noticed the same bug.
But it occurs only when option 'openOnFocus' is set to true and while entering the AutoComplete field with mouse. If I enter the field with Tab-key then the keydown is working as expected.
Problem description
Autocomplete control - keydown skips the first option
Steps to reproduce the problem reproduce the problem):
-Click on the control with mouse
** A list appears at the bottom
-Press down arrow key
** The text control looses focus
-Press down arrow key again
** Second option gets selected
How do I fix this so that it selects the first option in the list.
If I set openOnFocus to false the problem goes away.
Link to minimally-working code that reproduces the issue
See controlled example in demo (http://www.material-ui.com/#/components/auto-complete) to reproduce the problem
Versions
The text was updated successfully, but these errors were encountered: