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 hefeng committed Jan 25, 2019
1 parent 4b60d6e commit b9390a9
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 b9390a9

Please sign in to comment.