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 88c9d26 commit 65109a7Copy full SHA for 65109a7
packages/runtime-dom/src/components/Transition.ts
@@ -239,9 +239,11 @@ export function resolveTransitionProps(
239
if (__COMPAT__ && legacyClassEnabled && legacyLeaveFromClass) {
240
addTransitionClass(el, legacyLeaveFromClass)
241
}
242
+ // add *-leave-active class before reflow so in the case of a cancelled enter transition
243
+ // the css will not get the final state (#10677)
244
+ addTransitionClass(el, leaveActiveClass)
245
// force reflow so *-leave-from classes immediately take effect (#2593)
246
forceReflow()
- addTransitionClass(el, leaveActiveClass)
247
nextFrame(() => {
248
if (!el._isLeaving) {
249
// cancelled
0 commit comments