Skip to content

Commit d09c0dd

Browse files
committed
fix(transition-group): work around rollup tree shaking, fix vuejs#6792
1 parent 1f84dd1 commit d09c0dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/platforms/web/runtime/components/transition-group.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ export default {
102102

103103
// force reflow to put everything in position
104104
const body: any = document.body
105-
const f: number = body.offsetHeight // eslint-disable-line
105+
this._h = body.offsetHeight // assign to this to avoid removed in tree-shaking
106106

107107
children.forEach((c: VNode) => {
108108
if (c.data.moved) {

0 commit comments

Comments
 (0)