-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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: Backward comaptability of Button disabled attribute #7907
Conversation
🦋 Changeset detectedLatest commit: 3561775 The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@BANOnotIT why not simply |
It doesn't since in mentioned commit disabled prop is placed after |
@BANOnotIT indeed i was wrong here. But with your proposed PR for me the problem still exists that no workaround is possible for #7965, as Also, adding |
Yeah... That's definitely needs some consideration.
Imo it's more crucial to bring back functionality and then think on how we can design future interface better. But this attribute is used already and used in many projects in many places. One can't simply remove functionality in fix release. |
We're totally on the same page here, a breaking change in a minor version is unacceptable in a semver world.
No it doesn't (completely). Because in any version before 0f37665, i could set |
Got it. Then yeah, I think then only revert is a right thing to do. |
I understand the thinking for this (always good to help with accessibility!), but is a bit frustrating that seemingly a decision was made to revert back in August and it never happened. Is there anything I can do to help this along? It is a moot point for us now (deploying a fix to prod today), but would like to avoid any other companies getting the unfortunate surprise that we did. Maybe we could get the original patch comment into the full changelog as well, since it seems like it never got added there. My personal opinion is to do a quick revert, then if the functionality is important enough, do a bigger version change to indicate it is a breaking change and use TypeScript's I know this probably feels like it was a small change, but you never know how end users may be using it. We unfortunately happened to be using |
@ShawnFumo Yes, reverting that change would be most appreciated. Otherwise our current codebase is stuck with an older ChakraUI version, b/c we need to be able to set |
@Philzen any updates on this? this is a breaking change that was wrongly introduced and it's been hanging for a while... |
@augustoabreu i've now created #8462 which simply reverts this breaking change. Just checked on the docs playground and it seems to work as expected again, try for yourself: https://chakra-ui-website-git-fork-philzen-7269-7816-7-fafd11-chakra-ui.vercel.app/docs/components/button |
Merged a recent PR for this already |
Closes #7905, closes #7816, closes #7269
📝 Description
disabled
attribute can't be omitted because that requires BREAKING change⛳️ Current behavior (updates)
All version @chakra-ui/button@>2.0.16 are incompatible with @chakra-ui/button@2.0.15
🚀 New behavior
It respects disabled attribute
💣 Is this a breaking change (Yes/No):
This is a revert of BREAKING change
📝 Additional Information
isDisabled can be a MINOR change but removing disabled prop behavior is a BRAKING change