-
-
Notifications
You must be signed in to change notification settings - Fork 32.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
[Autocomplete] option gets selected when clicking outside of the option list when autoSelect=true and freeSolo=true #33681
Comments
autoSelect prop is used to select the option which gets mouse hover or keyboard focus If your |
Yes, but I would expect the option to stop being hovered when the cursor leaves the options list. I think when user wants to click outside of the options list it means he wants to close the options and pick none. |
Then you can remove autoSelect prop to disable that functionality. Or do you want to keep autoSelect and wants to disable that hover functionality ? |
But I find the autoSelect functionality useful in a way where user types something in the input field and the text matches value. Lets say picking from list of U.S. states. Lets say I do not want to scroll down to WY for Wyoming but just type it in quickly, hit tab and go. Yes I would love to loose the hover when not directly hovering over the option. Is there a way how to do it with the current version? |
Duplicate of #20602 |
Duplicates
Latest version
Current behavior 😯
property autoSelect is set to true
property freeSolo is set to true
list with options "suggestions" is open
I hover over some of those option with cursor
I then move cursor out of the options list and click
option gets selected as a value of the field
Expected behavior 🤔
property autoSelect is set to true
property freeSolo is set to true
list with options "suggestions" is open
I hover over some of those option with cursor
I then move cursor out of the options list and click
options list gets closed no value change happens
Steps to reproduce 🕹
Steps:
Context 🔦
No response
Your environment 🌎
npx @mui/envinfo
The text was updated successfully, but these errors were encountered: