-
-
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Autocomplete][material-ui] Disabled is not working properly #36867
Comments
I can confirm it's a bug. @sai6855, would you like to take a look at it? |
@michaldudak yes I will check |
Opened PR |
@sai6855 is this already released? seems it's still reproducing on v5.12.2 |
@chepicov It's not in v5.12.2, it will be in this week's release! |
Apologies we'll need to reopen this and find a different fix, for more context: #36892 (comment) |
I was able to simplify the repro: https://codesandbox.io/s/https-github-com-mui-material-ui-issues-36867-m25xds?file=/demo.tsx Case 1 - Click anywhere in the green area Case 2 - Mouse over the blue or green area, press and hold the left mouse button, move the cursor to the red area, release LMB |
@mj12albert |
@dhrumit9 Hey I was just testing it a whole bunch because I could hardly believe how simple the fix may be 馃槄 just waiting for some reviews for the PR now In the mean time, you can fork this sandbox and test the fix, or use try this version in your project locally to see if it works for you: yarn add https://pkg.csb.dev/mui/material-ui/commit/617d8f2b/@mui/material |
This fix is released in |
Duplicates
Latest version
Steps to reproduce 馃暪
Link to live example:
https://codesandbox.io/s/jovial-bose-plcz66?file=/package.json
Screen.Recording.2023-08-14.at.19.45.41.mov
There are two bugs but its the same issue
Steps:
Issue one (Autocomplete multiple={true} disabled):
Issue two (Autocomplete multiple={false} disabled):
Current behavior 馃槸
The autocomplete open the panel of options when is disabled.
Expected behavior 馃
I expect that if the autocomplete is disabled just show me the value/values without show me others options
Context 馃敠
Its confused for my customers see options that they don't have and they should not see
Your environment 馃寧
npx @mui/envinfo
The text was updated successfully, but these errors were encountered: