From: Evan You Date: Mon, 30 Nov 2020 20:48:34 +0000 (-0500) Subject: fix(v-show): ensure v-show conflict with inline string style binding X-Git-Tag: v3.0.4~25 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3cd30c5245da0733f9eb6f29d220f39c46518162;p=thirdparty%2Fvuejs%2Fcore.git fix(v-show): ensure v-show conflict with inline string style binding fix #2583 --- diff --git a/packages/runtime-dom/src/directives/vShow.ts b/packages/runtime-dom/src/directives/vShow.ts index d9bf3af548..f94ac3bae3 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)