Skip to content

Commit aa8a501

Browse files
committed
[Collapse] Remove the height style property instead of setting it to zero, this fixes issues when having frequent window width changes.
1 parent 52179e1 commit aa8a501

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/components/collapse.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
el.style.height = `${height}px`;
5959
},
6060
leave(el) {
61-
el.style.height = 0;
61+
el.style.height = null;
6262
}
6363
},
6464

0 commit comments

Comments
 (0)