-
Notifications
You must be signed in to change notification settings - Fork 1.2k
[Collapsible] Add support for disabling the transition, and fix state machine #7364
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
Merged
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
fe4e2a0
Do not animate when transition duration is 0. Do not animate when chi…
Bringer128 cdbcf0a
Collapsible no longer needs preventMeasuringOnChildrenUpdate
Bringer128 c06133c
Don't remove the preventMeasuringOnChildrenUpdate flag to make this a…
Bringer128 f08519a
Deprecate the preventMeasuringOnChildrenUpdate property
Bringer128 258bdf9
Add changeset
Bringer128 12ee027
Change to use disableTransition prop. Limit useEffect to open state c…
Bringer128 0a49421
Fix test
Bringer128 063b41f
Merge the transition properties
Bringer128 4b341c5
Secondary to use merged transition
Bringer128 237ea07
Changeset updated to new changes
Bringer128 20017ed
Update tests to cover fully open, closed, animating and transition di…
Bringer128 5a0528f
Remove accidental comment
Bringer128 82f3e5a
Fix test typo
Bringer128 e14e13a
Add support for catching 0ms and 0s as well
Bringer128 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| --- | ||
| '@shopify/polaris': minor | ||
| --- | ||
|
|
||
| Deprecated Collapsible preventMeasuringOnChildrenUpdate. | ||
| Fixed bug where Collapsible would get stuck in animating state when duration is 0. | ||
| Add support for intentionally disabling the transition in Collapsible. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.