[Button] Disabled classes not added to the button
See original GitHub issue- The issue is present in the latest release.
- I have searched the issues of this repository and believe that this is not a duplicate.
Current Behavior 😯
“my-disabled” class not added to the Button.
Steps to Reproduce 🕹
https://codesandbox.io/s/material-ui-issue-forked-12phu?file=/src/Demo.js
<Button disabled classes={{ disabled: "my-disabled" }}>A button</Button>
Issue Analytics
- State:
- Created 3 years ago
- Comments:9 (6 by maintainers)
Top Results From Across the Web
[Button] Disabled classes not added to the button · Issue #25011
The issue is present in the latest release. I have searched the issues of this repository and believe that this is not a...
Read more >Disabled button styling not applied [duplicate] - Stack Overflow
I am trying to add disabled styling to a button component using SCSS. I have a button that have multiple classes <button className="button...
Read more >How can adding the 'disabled' class actually disable the button?
The proper way to disable a button in jQuery is, according to what I can find on google, .prop("disabled", true) , not just...
Read more >HTML DOM Button disabled Property - W3Schools
The disabled property sets or returns whether a button is disabled, or not. A disabled element is unusable and un-clickable. Disabled elements are...
Read more >How to Set the disabled state in Angular Button component
Button component can be enabled/disabled by giving disabled property. To disable Button component, the disabled property can be set as true .
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@Boimb Either way is probably OK.
@oliviertassinari , I know this issue is closed, but felt not to open a new one for my question: How can I override
.Mui-contained.Mui-disabled
? As far as I tried,disabled
in classes does not take precedence over the “composed class”. I feel there must be a better way than adding!important
to my property 😃 Thx.[EDIT] Found the trick:
The important thing is to add the empty property
disabled
(can be not empty too) [/EDIT]