Skip to content

Commit

Permalink
fix(v-show): ensure v-show conflict with inline string style binding
Browse files Browse the repository at this point in the history
fix #2583
  • Loading branch information
yyx990803 committed Nov 30, 2020
1 parent 9db7095 commit 3cd30c5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/runtime-dom/src/directives/vShow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 3cd30c5

Please sign in to comment.