fix(runtime-core): avoid unexpected cancelled parameter in transition done callback#14391
fix(runtime-core): avoid unexpected cancelled parameter in transition done callback#14391KazariEX wants to merge 1 commit intovuejs:mainfrom
cancelled parameter in transition done callback#14391Conversation
📝 WalkthroughWalkthroughThe enter and leave transition hooks in BaseTransition.ts are refactored to assign callback functions directly to element properties (el[enterCbKey]/el[leaveCbKey]), then derive the done callback by binding false to the stored function reference instead of using a separately defined callback. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Possibly related PRs
Suggested labels
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Size ReportBundles
Usages
|
@vue/compiler-core
@vue/compiler-dom
@vue/compiler-sfc
@vue/compiler-ssr
@vue/reactivity
@vue/runtime-core
@vue/runtime-dom
@vue/server-renderer
@vue/shared
vue
@vue/compat
commit: |
|
/ecosystem-ci run |
|
📝 Ran ecosystem CI: Open
|
Code like this does not actually report a type error, even though
donehas the correct type:This will cause the
leave-cancelledevent to always be triggered instead of theafter-leaveevent.