Skip to content

Commit

Permalink
fix: fix transition
Browse files Browse the repository at this point in the history
  • Loading branch information
Doctor-wu committed Feb 25, 2024
1 parent 0e03778 commit 2faa221
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/runtime-dom/src/directives/vShow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ export const vShow: ObjectDirective<VShowElement> & { name?: 'show' } = {
if (transition) {
if (value) {
transition.beforeEnter(el)
postSetDisplay(el, true)
setDisplay(el, true)
transition.enter(el)
} else {
transition.leave(el, () => {
postSetDisplay(el, false)
setDisplay(el, false)
})
}
} else {
Expand Down

0 comments on commit 2faa221

Please sign in to comment.