-
-
Notifications
You must be signed in to change notification settings - Fork 110
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
fix: actually disabling the button when it's disabled and using href #1039
Conversation
|
Should I add a changeset? |
Hey @polvallverdu, I'm not sure if simply rendering a link without an We should do some more investigating into what the right way to handle this. We obviously want to set the We can also prevent pointer events on the anchor and apply a |
I just found this guide which seems to be a reasonable approach to it: |
Agree, but another issue that arises if the anchor tag is maintained is that the styles for disabled button are applied with Let me know your thoughts on the disabled styles when handling this. |
We could probably just apply |
I've been testing some things (like using the The issue here is that if |
Hey thanks for taking a stab at this, went ahead and merged #1055 as the fix to this and will be doing a release shortly so you have it in your code! Sorry for the delay, was out on travel this week! |
Related to #1038
Since it's gathering the props from
AnchorElement | ButtonElement
, when using href, it's actually an anchor, but the disabled is still available. It would be really useful to have this feature, since it offers a lot more flexibility for my project, and doesn't mislead when looking at the props.