-
-
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
[joy-ui][Button] Disabled style is not applied when component
prop is used
#38960
Comments
component
prop is used
changing selector from below line
Reason of issue could be because base material-ui/packages/mui-base/src/useButton/useButton.ts Lines 194 to 210 in d4c308a
|
The Another option, which I think is what we should do, is to use the
|
Ah I see thanks for info, since disabled attribute is supported by multiple elements as shown in mdn doc's. Should base UI also support them instead of just button? |
The hook is The |
Duplicates
Latest version
Steps to reproduce 🕹
Link to live example: https://codesandbox.io/s/joy-disabled-non-button-t9x84m
Steps:
Button
componentdisabled
propcomponent="a"
prop (or any other that's not"button"
)Current behavior 😯
The button is disabled (
onClick
does not fire), but the style does not change accordingly.Expected behavior 🤔
The button should have the disabled appearance.
Context 🔦
No response
Your environment 🌎
Joy UI
v5.0.0-beta.6
The text was updated successfully, but these errors were encountered: