fix(runtime-core): pause tracking when invoking function refs#14985
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthrough
Function ref tracking suppression
Estimated code review effort🎯 2 (Simple) | ⏱️ ~5 minutes Suggested labels
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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
|
vuejs/core#14985 pauses tracking when invoking function refs, so a function ref reading a component's exposed template ref (assigned in a post job) is no longer re-invoked once the ref lands. Add createElementRef to @v-c/util which retries the resolution on nextTick with a sequence guard, and use it for trigger's setPopupRef/setTargetRef, UniqueProvider's setPopupRef (fixes unique mode first-open misplacement) and resize-observer's setWrapperRef. Ref: antdv-next/antdv-next#623
… Space.Compact on vue 3.5.39) On first open inside Space.Compact, Select's dropdown aligned against the adjacent compact item instead of the select itself. resolveToElement's comment-$el -> nextElementSibling fallback resolved trigger's Popup (still hidden by the getPopupContainer delay) to the neighboring input, and since vue 3.5.39 function refs are no longer re-invoked reactively (vuejs/core#14985) the stolen element stuck until the post-motion re-align. @v-c/util 1.0.21 skips the sibling guess when the component exposes an element contract (nativeElement/el/getElement), letting the ref retry and onPrepare seed the real popup element. Ref: #623
Summary by CodeRabbit
Bug Fixes
Tests