-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure that you can use Transition Child components in more scenario's (
#503) * ensure that you can use Transition Child components When you are using the implicit variants of the components, for example when you are using a Transition component inside a Menu component then it might look weird in Vue. The Vue code could look like this: ``` <Menu> <TransitionRoot> <MenuItems>...</MenuItems> </TransitionRoot> <Menu> ``` However, `TransitionRoot` doesn't make much sense here because it sits in the middle of 2 components, and it is also not controlled by an explicit `show` prop. This commit will allows you to use a `TransitionChild` instead (in fact, both work). We basically now do a few things, when you are using a TransitionChild: - Do we have a parent `TransitionRoot`? Yes -> Use it - Do we have an open closed state? Yes -> Render a TransitionRoot in between behind the scenes. - Throw the error we were throwing before! * update changelog
- Loading branch information
1 parent
a8bbd0e
commit e40c66c
Showing
6 changed files
with
177 additions
and
6 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 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 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