fix(transition): toggling branches with in-out mode should be transitioned correctly (#3109)

fix #3104
This commit is contained in:
HcySunYang
2021-03-23 04:56:24 +08:00
committed by GitHub
parent b2e00f011a
commit 67a0290c0a
2 changed files with 23 additions and 8 deletions

View File

@@ -223,7 +223,7 @@ const BaseTransitionImpl = {
instance.update()
}
return emptyPlaceholder(child)
} else if (mode === 'in-out') {
} else if (mode === 'in-out' && innerChild.type !== Comment) {
leavingHooks.delayLeave = (
el: TransitionElement,
earlyRemove,