fix(runtime-core): fix directive merging on component root

fix #2298
This commit is contained in:
Evan You
2020-10-07 22:02:32 -04:00
parent f06518a8c9
commit 4d1ebb5deb
2 changed files with 28 additions and 1 deletions

View File

@@ -186,7 +186,7 @@ export function renderComponentRoot(
`The directives will not function as intended.`
)
}
root.dirs = vnode.dirs
root.dirs = root.dirs ? root.dirs.concat(vnode.dirs) : vnode.dirs
}
// inherit transition data
if (vnode.transition) {