Skip to content

Commit

Permalink
[Collapse] Remove the height style property instead of setting it to …
Browse files Browse the repository at this point in the history
…zero, this fixes issues when having frequent window width changes.
  • Loading branch information
cynecx committed Apr 12, 2017
1 parent 52179e1 commit aa8a501
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/components/collapse.vue
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
el.style.height = `${height}px`;
},
leave(el) {
el.style.height = 0;
el.style.height = null;
}
},
Expand Down

0 comments on commit aa8a501

Please sign in to comment.