We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a6c6f2f commit 98c8decCopy full SHA for 98c8dec
packages/ui/src/components/_transition/CollapseTransition.tsx
@@ -124,6 +124,9 @@ export function DCollapseTransition(props: DCollapseTransitionProps): JSX.Elemen
124
break;
125
126
case 'leave':
127
+ if (originalSize[isHorizontal ? 'width' : 'height'] === 0) {
128
+ originalSize[isHorizontal ? 'width' : 'height'] = ref.current?.[isHorizontal ? 'offsetWidth' : 'offsetHeight'];
129
+ }
130
Object.assign(transitionStyle, originalSize, {
131
overflow: 'hidden',
132
});
0 commit comments