Skip to content

Commit e5c58a6

Browse files
committed
fix(show): prevent transitions from starting on change truthy values
Closes vuejs#7523
1 parent f2b476d commit e5c58a6

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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)