Skip to content

Commit

Permalink
fix(VExpandTransition): reflow DOM before closing
Browse files Browse the repository at this point in the history
the original height style needs to be committed before resetting it back
to 0

fixes #6049
fixes #6102
  • Loading branch information
KaelWD committed Jan 29, 2019
1 parent 6c62d8d commit 5d8b0df
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -39,6 +39,7 @@ export default function (expandedParentClass = '') {

el.style.overflow = 'hidden'
el.style.height = `${el.offsetHeight}px`
void el.offsetHeight // force reflow

requestAnimationFrame(() => el.style.height = 0)
},
Expand Down

0 comments on commit 5d8b0df

Please sign in to comment.