We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
yyx990803
Learn more about funding links in repositories.
Report abuse
1 parent 603a1e1 commit e509639Copy full SHA for e509639
packages/runtime-dom/src/directives/vShow.ts
@@ -22,7 +22,11 @@ export const vShow: ObjectDirective<VShowElement> & { name?: 'show' } = {
22
}
23
},
24
updated(el, { value, oldValue }, { transition }) {
25
- if (!value === !oldValue && el.style.display === el[vShowOldKey]) return
+ if (
26
+ !value === !oldValue &&
27
+ (el.style.display === el[vShowOldKey] || !value)
28
+ )
29
+ return
30
if (transition) {
31
if (value) {
32
transition.beforeEnter(el)
0 commit comments