Skip to content

fix: preserve focus through native control transfers - #4440

Closed
leaf-agent wants to merge 1 commit into
mainfrom
fix/issue-4425
Closed

leaf-agent wants to merge 1 commit into
mainfrom
fix/issue-4425

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

Native Tab transfers briefly leave the document body active between blur and focus. #4406 started reading that gap in a microtask as a real departure, so the margin folded its options before Reject could receive focus. The shared focus reader now waits until the transfer task finishes and ignores departures superseded by a newer location. Failed component arrivals still publish their departure, preserving #4406's intent.

The reported margin Tab test fails on main and passes with this change. A new runtime regression also fails before the change and passes afterward. The adjacent margin arrow test, the review-a-fix stale-key journey behind #4406, and pnpm run check pass. Generated kernel files are rebuilt.

Closes #4425 — automated triage

Read focus departures after the native transfer task rather than its intermediate microtask checkpoint. Ignore a deferred departure superseded by a newer location. The runtime regression protects against an intermediate empty location; failed component arrivals still publish their departure.

Closes #4425
@leaf-agent

Copy link
Copy Markdown
Collaborator Author

Closing this duplicate in favor of #4439, opened concurrently for the same native focus-transfer defect. Both changes defer the shared departure reading until the transfer task finishes; #4439 already owns that repair. I will report the additional #4425 reproduction evidence there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Tab from the primary margin action loses the visible Reject entry

1 participant