From 39b6c6a0ff856549a659fe18a4f779fbb6dc5595 Mon Sep 17 00:00:00 2001 From: Eduardo San Martin Morote Date: Thu, 8 Mar 2018 17:19:08 +0100 Subject: [PATCH] fix(show): prevent transitions from starting on change truthy values (#7524) Closes #7523 --- src/platforms/web/runtime/directives/show.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platforms/web/runtime/directives/show.js b/src/platforms/web/runtime/directives/show.js index 703aa5b6afe..17fb5dec20d 100644 --- a/src/platforms/web/runtime/directives/show.js +++ b/src/platforms/web/runtime/directives/show.js @@ -27,7 +27,7 @@ export default { update (el: any, { value, oldValue }: VNodeDirective, vnode: VNodeWithData) { /* istanbul ignore if */ - if (value === oldValue) return + if (!value === !oldValue) return vnode = locateNode(vnode) const transition = vnode.data && vnode.data.transition if (transition) {