Skip to content

Commit

Permalink
fix(show): prevent transitions from starting on change truthy values (#…
Browse files Browse the repository at this point in the history
…7524)

Closes #7523
  • Loading branch information
posva authored and yyx990803 committed Mar 8, 2018
1 parent 733c1be commit 013d980
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/platforms/web/runtime/directives/show.js
Original file line number Diff line number Diff line change
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 013d980

Please sign in to comment.