From 3eb12955cd91f20950022dab544490651e468290 Mon Sep 17 00:00:00 2001 From: Shana Shana Date: Fri, 10 Feb 2023 11:36:19 +0100 Subject: [PATCH] fix(transition): transition to expand component fix transition to avoid running the increaseHeight twice in development. Fixes: #256 --- packages/core/src/Transition/FoldTransition.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/core/src/Transition/FoldTransition.tsx b/packages/core/src/Transition/FoldTransition.tsx index 8f581561..ae089d14 100644 --- a/packages/core/src/Transition/FoldTransition.tsx +++ b/packages/core/src/Transition/FoldTransition.tsx @@ -35,6 +35,7 @@ export const FoldTransition: FC = ({ const node = nodeRef.current const height = node.offsetHeight + if (height === 0) return transitionHeight(node, 0, height) }, [])