Skip to content

Commit 3cd30c5

Browse files
committed
fix(v-show): ensure v-show conflict with inline string style binding
fix #2583
1 parent 9db7095 commit 3cd30c5

File tree

1 file changed

+1
-2
lines changed
  • packages/runtime-dom/src/directives

1 file changed

+1
-2
lines changed

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

+1-2
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ export const vShow: ObjectDirective<VShowElement> = {
2020
}
2121
},
2222
updated(el, { value, oldValue }, { transition }) {
23-
if (!value === !oldValue) return
24-
if (transition) {
23+
if (transition && value !== oldValue) {
2524
if (value) {
2625
transition.beforeEnter(el)
2726
setDisplay(el, true)

0 commit comments

Comments
 (0)