-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* always wrap `Dialog` in a `Transition` Initially we didn't do this, because it's a bit silly to do that if you already had a `Transition` component on the outside. E.g.: ```tsx <Transition show={open}> <Dialog onClose={() => setOpen(false)}> {/* ... */} </Dialog> </Transition> ``` Because this means that we technically have this: ```tsx <Transition show={open}> <Dialog onClose={() => setOpen(false)}> <Transition> <InternalDialog> {/* ... */} </InternalDialog> </Dialog> </Transition> </Transition> ``` The good part is that the inner `Transition` is rendering a `Fragment` and forwards all the props to the underlying element (the internal dialog). This way we have a guaranteed transition boundary. * use public `transition` API instead of private internal API This also mimics better what we are actually trying to do. * update changelog
- Loading branch information
1 parent
275c205
commit 3224a9e
Showing
3 changed files
with
39 additions
and
14 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