From 3cd30c5245da0733f9eb6f29d220f39c46518162 Mon Sep 17 00:00:00 2001 From: Evan You Date: Mon, 30 Nov 2020 15:48:34 -0500 Subject: [PATCH] fix(v-show): ensure v-show conflict with inline string style binding fix #2583 --- packages/runtime-dom/src/directives/vShow.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/runtime-dom/src/directives/vShow.ts b/packages/runtime-dom/src/directives/vShow.ts index d9bf3af54..f94ac3bae 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)