fix(transition/v-show): ensure transition is in persisted mode when used with v-show

fix #4845
close #4852
This commit is contained in:
Evan You
2022-05-11 19:22:55 +08:00
parent 2bab639683
commit 425310e8b6
8 changed files with 319 additions and 166 deletions

View File

@@ -713,6 +713,7 @@ function baseCreateRenderer(
(!parentSuspense || (parentSuspense && !parentSuspense.pendingBranch)) &&
transition &&
!transition.persisted
if (transition) debugger
if (needCallTransitionHooks) {
transition!.beforeEnter(el)
}