Skip to content

Commit

Permalink
fix(show): prevent transitions from starting on change truthy values (v…
Browse files Browse the repository at this point in the history
  • Loading branch information
posva authored and aJean committed Aug 19, 2020
1 parent 55cd233 commit 39b6c6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/platforms/web/runtime/directives/show.js
Expand Up @@ -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) {
Expand Down

0 comments on commit 39b6c6a

Please sign in to comment.