mirror of https://github.com/vuejs/vue.git
skip v-show transition if value is the same (fix #3395)
This commit is contained in:
parent
c2c68d6a22
commit
1c0effa577
|
|
@ -19,7 +19,8 @@ export default {
|
|||
}
|
||||
el.style.display = value ? '' : 'none'
|
||||
},
|
||||
update (el: HTMLElement, { value }: VNodeDirective, vnode: VNodeWithData) {
|
||||
update (el: HTMLElement, { value, oldValue }: VNodeDirective, vnode: VNodeWithData) {
|
||||
if (value === oldValue) return
|
||||
vnode = locateNode(vnode)
|
||||
const transition = vnode.data && vnode.data.transition
|
||||
if (transition && !isIE9) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue