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 2fc1a55 commit a0260d7Copy full SHA for a0260d7
src/packages/collapseitem/collapseitem.tsx
@@ -73,13 +73,11 @@ export const CollapseItem: FunctionComponent<
73
74
const updateRectHeight = async () => {
75
const height = contentRef.current.offsetHeight
76
- if (height) {
77
- setCurrentHeight(height)
78
- setWrapperHeight(expanded ? height : 0)
79
- setTimeout(() => {
80
- setTran(1)
81
- })
82
- }
+ setCurrentHeight(height)
+ setWrapperHeight(expanded ? height : 0)
+ setTimeout(() => {
+ setTran(1)
+ })
83
}
84
85
useEffect(() => {
0 commit comments