]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
fix(v-show): ensure v-show conflict with inline string style binding
authorEvan You <yyx990803@gmail.com>
Mon, 30 Nov 2020 20:48:34 +0000 (15:48 -0500)
committerEvan You <yyx990803@gmail.com>
Mon, 30 Nov 2020 20:48:34 +0000 (15:48 -0500)
fix #2583

packages/runtime-dom/src/directives/vShow.ts

index d9bf3af54874e521af72fefb96bd49cb500f13da..f94ac3bae3b92bb7fa8547f779f1ea980ae1ff3e 100644 (file)
@@ -20,8 +20,7 @@ export const vShow: ObjectDirective<VShowElement> = {
     }
   },
   updated(el, { value, oldValue }, { transition }) {
-    if (!value === !oldValue) return
-    if (transition) {
+    if (transition && value !== oldValue) {
       if (value) {
         transition.beforeEnter(el)
         setDisplay(el, true)