This commit is contained in:
Evan You 2016-08-07 22:35:51 -04:00
parent 6e1597cf0b
commit 75b2f52301
1 changed files with 1 additions and 0 deletions

View File

@ -20,6 +20,7 @@ export default {
el.style.display = value ? '' : 'none'
},
update (el: HTMLElement, { value, oldValue }: VNodeDirective, vnode: VNodeWithData) {
/* istanbul ignore if */
if (value === oldValue) return
vnode = locateNode(vnode)
const transition = vnode.data && vnode.data.transition