diff --git a/packages/runtime-dom/src/directives/vShow.ts b/packages/runtime-dom/src/directives/vShow.ts index d9bf3af5487..f94ac3bae3b 100644 --- a/packages/runtime-dom/src/directives/vShow.ts +++ b/packages/runtime-dom/src/directives/vShow.ts @@ -20,8 +20,7 @@ export const vShow: ObjectDirective = { } }, updated(el, { value, oldValue }, { transition }) { - if (!value === !oldValue) return - if (transition) { + if (transition && value !== oldValue) { if (value) { transition.beforeEnter(el) setDisplay(el, true)