-
-
Notifications
You must be signed in to change notification settings - Fork 31.8k
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][material-ui] noOptionsText does not show in freeSolo
#37862
Comments
@mj12albert, Hey, how are you? do you have any news here? |
Also encountering this problem in my project, anything new? |
I believe this is the expected behavior for
@diegomarcuz The primary use case for |
I would also like this because many users do not know to press enter to add and only search through the list so I would like to show them a message that says, "No matching option found, press enter to add" |
Any updates on this one? |
freeSolo
@tombburnell You can refer to the "Free solo with text demo" here to see how to achieve this: I will close this issue for now! |
I also faced this problem when developing an autocomplete with the paginated response from the backend. I created a custom And to mimic the exact no option text, I used the following component.
|
Duplicates
Latest version
Steps to reproduce 🕹
No response
Current behavior 😯
Steps:
freeSolo
demonoOptionsText
will be shown when the pop-up opens.Expected behavior 🤔
I expect the
noOptionsText
should be shown when no options are found (not when the input is first clicked) because when searching and if nothing was found, It would be good to provide the users with some feedback. I can do the adjustment, but I would like to open to discussion before coding it.Context 🔦
I have a Google Search, but when the users do find nothing, I would like to provide feedback for them and I am using
freeSolo
for this use case because I read the documentation. However, I am in doubt if I remove thefreeSolo
will be semantically right.Your environment 🌎
npx @mui/envinfo
The text was updated successfully, but these errors were encountered: