Skip to content

Commit

Permalink
Merge branch 'bugfix/swipe-gesture-animation'
Browse files Browse the repository at this point in the history
  • Loading branch information
fkhadra committed Jun 21, 2020
2 parents 1d9bc4a + 630741f commit 9a2f5cb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/utils/cssTransition.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,9 @@ export function cssTransition({
{...props}
timeout={
preventExitTransition
? 0
? collapse
? collapseDuration
: DEFAULT.DEBOUNCE_DURATION
: {
enter: enterDuration,
exit: collapse
Expand All @@ -120,7 +122,7 @@ export function cssTransition({
}
onEnter={onEnter}
onEntered={onEntered}
onExit={preventExitTransition ? done : onExit}
onExit={preventExitTransition ? onExited : onExit}
unmountOnExit
>
{children}
Expand Down

0 comments on commit 9a2f5cb

Please sign in to comment.