Skip to content

Commit

Permalink
[@mantine/core] Drawer: Fix transitionDuration not being respected …
Browse files Browse the repository at this point in the history
…for exit transition (#2820)
  • Loading branch information
cheechoo28 committed Oct 27, 2022
1 parent 1d3eadd commit 4773e67
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/mantine-core/src/Drawer/Drawer.tsx
Expand Up @@ -204,6 +204,7 @@ export function Drawer(props: DrawerProps) {
onExited={() => _lockScroll(false)}
onEntered={() => _lockScroll(lockScroll && true)}
mounted={opened}
duration={transitionDuration}
timingFunction={transitionTimingFunction}
transitions={{
overlay: { duration: transitionDuration / 2, transition: 'fade', timingFunction: 'ease' },
Expand Down

0 comments on commit 4773e67

Please sign in to comment.