Skip to content

Commit 013d980

Browse files
posvayyx990803
authored andcommittedMar 8, 2018
fix(show): prevent transitions from starting on change truthy values (#7524)
Closes #7523
1 parent 733c1be commit 013d980

File tree

1 file changed

+1
-1
lines changed
  • src/platforms/web/runtime/directives

1 file changed

+1
-1
lines changed
 

Diff for: ‎src/platforms/web/runtime/directives/show.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export default {
2727

2828
update (el: any, { value, oldValue }: VNodeDirective, vnode: VNodeWithData) {
2929
/* istanbul ignore if */
30-
if (value === oldValue) return
30+
if (!value === !oldValue) return
3131
vnode = locateNode(vnode)
3232
const transition = vnode.data && vnode.data.transition
3333
if (transition) {

0 commit comments

Comments
 (0)