Skip to content

Commit

Permalink
fix(transition-group): work around rollup tree shaking (#6796)
Browse files Browse the repository at this point in the history
fix #6792
  • Loading branch information
jkzing authored and yyx990803 committed Oct 13, 2017
1 parent 15031b8 commit 60b1af9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/platforms/web/runtime/components/transition-group.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,9 @@ export default {
children.forEach(applyTranslation)

// force reflow to put everything in position
const body: any = document.body
const f: number = body.offsetHeight // eslint-disable-line
// assign to this to avoid being removed in tree-shaking
// $flow-disable-line
this._reflow = document.body.offsetHeight

children.forEach((c: VNode) => {
if (c.data.moved) {
Expand Down

0 comments on commit 60b1af9

Please sign in to comment.