fix(v-show): ensure v-show conflict with inline string style binding

fix #2583
This commit is contained in:
Evan You 2020-11-30 15:48:34 -05:00
parent 9db7095962
commit 3cd30c5245

View File

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