Skip to content
This repository was archived by the owner on Mar 25, 2025. It is now read-only.

Commit abd8f10

Browse files
Sana-Shanaboilund
authored andcommitted
fix(transition): transition to expand component
fix transition to avoid running the increaseHeight twice in development. Fixes: #256
1 parent 067117d commit abd8f10

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/core/src/Transition/FoldTransition.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ export const FoldTransition: FC<FoldTransitionProps> = ({
3535
const node = nodeRef.current
3636

3737
const height = node.offsetHeight
38+
if (height === 0) return
3839
transitionHeight(node, 0, height)
3940
}, [])
4041

0 commit comments

Comments
 (0)