fix(popover): DLT-3550 guard focusFirstElementIfNeeded against unset content ref - #1407
Conversation
…content ref A delayed after-enter callback can fire against a stale $refs.content when the main thread is blocked during the enter transition, causing returnFirstEl(...) to return null and crash on .focus().
|
Please add either the |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository YAML (base), Central YAML (inherited), Workspace UI (inherited) Review profile: ASSERTIVE Plan: Enterprise Run ID: 📒 Files selected for processing (2)
🔗 Linked repositories identifiedCodeRabbit considers these linked repositories for cross-repo context during reviews:
Included review availability: Your plan provides up to 12 included reviews per hour; 11 remain after this review. Updated Overall Judgement: ✅ Ready to merge — The fix is narrowly scoped and tested with 59 passing tests and 2 skipped tests. WalkthroughThe popover fallback focus path now tolerates an unavailable content reference. A regression test covers delayed focus execution after the reference becomes unset. ChangesPopover focus safety
Suggested reviewers: Merge Risk: ⚪ Minimal · up to This change prevents a popover focus callback from throwing when its content is unavailable and includes regression coverage for the affected fallback path. No actionable merge-blocking risk remains beyond normal checks and review. 🚥 Pre-merge checks | ✅ 2✅ Passed checks (2 passed)
Full details: Docs-To-Code AlignmentExplanation PASS. The net PR diff changes only Full details: Disabled Test TrackingExplanation The PR does not neutralize any test. The Popover commit adds a normal ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
✔️ Deploy previews ready! |
# [3.225.0-next.8](dialtone-vue/v3.225.0-next.7...dialtone-vue/v3.225.0-next.8) (2026-09-04) ### Bug Fixes * **Popover:** DLT-3550 guard focusFirstElementIfNeeded against unset content ref ([#1407](#1407)) ([7ebddf4](7ebddf4)) ### Documentation * DLT-3431 redesign next doc site ([#1405](#1405)) ([7f4e798](7f4e798))
# [10.0.0-next.20](dialtone/v10.0.0-next.19...dialtone/v10.0.0-next.20) (2026-09-04) ### Bug Fixes * **Popover:** DLT-3550 guard focusFirstElementIfNeeded against unset content ref ([#1407](#1407)) ([7ebddf4](7ebddf4)) ### Documentation * DLT-3431 redesign next doc site ([#1405](#1405)) ([7f4e798](7f4e798)) * NO-JIRA ensure deep-linked active side within view ([#1409](#1409)) ([9618ddd](9618ddd)) ### Features * DLT-3590 add package support for redesigned docs ([#1404](#1404)) ([8aa6b0b](8aa6b0b))
Summary
Jira: DLT-3550 (https://dialpad.atlassian.net/browse/DLT-3550)
Test plan