We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a152fe0 commit 3627a27Copy full SHA for 3627a27
src/core/vdom/modules/directives.js
@@ -1,10 +1,13 @@
1
/* @flow */
2
3
import { resolveAsset } from 'core/util/options'
4
+import { mergeVNodeHook } from 'core/vdom/helpers'
5
6
export default {
7
create: function bindDirectives (oldVnode: VNodeWithData, vnode: VNodeWithData) {
- applyDirectives(oldVnode, vnode, 'bind')
8
+ mergeVNodeHook(vnode.data.hook || (vnode.data.hook = {}), 'insert', () => {
9
+ applyDirectives(oldVnode, vnode, 'bind')
10
+ })
11
},
12
update: function updateDirectives (oldVnode: VNodeWithData, vnode: VNodeWithData) {
13
applyDirectives(oldVnode, vnode, 'update')
0 commit comments