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 c2c68d6 commit 1c0effaCopy full SHA for 1c0effa
src/platforms/web/runtime/directives/show.js
@@ -19,7 +19,8 @@ export default {
19
}
20
el.style.display = value ? '' : 'none'
21
},
22
- update (el: HTMLElement, { value }: VNodeDirective, vnode: VNodeWithData) {
+ update (el: HTMLElement, { value, oldValue }: VNodeDirective, vnode: VNodeWithData) {
23
+ if (value === oldValue) return
24
vnode = locateNode(vnode)
25
const transition = vnode.data && vnode.data.transition
26
if (transition && !isIE9) {
0 commit comments