From e5c58a669c5a6ff2f03a897eb26c698094d0773d Mon Sep 17 00:00:00 2001 From: Eduardo San Martin Morote Date: Wed, 24 Jan 2018 12:15:22 +0100 Subject: [PATCH] fix(show): prevent transitions from starting on change truthy values 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 703aa5b6af..17fb5dec20 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) {