From 630741f218ebd7ac729b165208604085df0146d7 Mon Sep 17 00:00:00 2001 From: Pogodaanton <8974778+Pogodaanton@users.noreply.github.com> Date: Fri, 19 Jun 2020 17:50:24 +0200 Subject: [PATCH] fixes #500 --- src/utils/cssTransition.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/utils/cssTransition.tsx b/src/utils/cssTransition.tsx index 0ad38391..4867a09d 100644 --- a/src/utils/cssTransition.tsx +++ b/src/utils/cssTransition.tsx @@ -110,7 +110,9 @@ export function cssTransition({ {...props} timeout={ preventExitTransition - ? 0 + ? collapse + ? collapseDuration + : DEFAULT.DEBOUNCE_DURATION : { enter: enterDuration, exit: collapse @@ -120,7 +122,7 @@ export function cssTransition({ } onEnter={onEnter} onEntered={onEntered} - onExit={preventExitTransition ? done : onExit} + onExit={preventExitTransition ? onExited : onExit} unmountOnExit > {children}