-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
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] closeIcon prop controls the clearIcon #23591
Comments
Thanks for the report. Confused me as well. I guess |
@eps1lon Hey there, can I fix this |
Tangentially related, would it be possible to also expose the close icon via props? |
@techdev5521 Do you mean close in sense closing the list. If that's the case I think its fired on
|
@akhilmhdh I mean exposing the close icon for being overridden in the same way the clear icon is exposed now. |
@techdev5521 What do you mean by "close icon"? Are you referring to the drop-down open/close icon? |
@oliviertassinari Sorry for being vague, yes that is exactly what I mean :) (Also, thanks @akhilmhdh for opening that PR! Looking at what you did makes it easy for me to address similar issues in the future!) |
@techdev5521 hey there sorry 😅on my side. Didn't saw the message. |
@techdev5521 Thanks for the clarification. Maybe, as a follow-up, we should replace these two props with a |
@oliviertassinari I've given that a skim and the In the meantime, I just had the idea that I could manipulate the |
Current Behavior 😯
The
closeIcon
prop is misnamed and corresponds to the icon for clearing the input.Expected Behavior 🤔
The
closeIcon
prop to corresponds to the icon for closing the input.Steps to Reproduce 🕹
https://codesandbox.io/s/mui-autocomplete-mislabeled-closeicon-46kt3?file=/src/App.js:693-5392. (This isn't the official template because it was complaining about an unrelated dependency not being met.
Steps:
Autocomplete
from@material-ui/lab
closeIcon
propContext 🔦
As it relates to MUI I just want the
closeIcon
prop to correspond to the appropriate end adornment. In practice, I am feeding the Autocomplete with an asynchronous fetch and want to fire the call only when the menu is closed.Your Environment 🌎
The text was updated successfully, but these errors were encountered: