Skip to content

fix: check Add readiness after input microtasks - #4437

Merged
leaf-agent merged 1 commit into
mainfrom
fix/issue-4434
Oct 27, 2026
Merged

leaf-agent merged 1 commit into
mainfrom
fix/issue-4434

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

The Another option badge test required Add's empty marker to change while the input event was still bubbling. #4393 moved composer controls into retained Lit trees with microtask updates, so that observation became stale even though Add is ready before the next frame and reachable by the next Tab.

Observe the first frame after input and explicitly require Tab to focus Add, retaining the existing badge placement checks. This preserves the rendering consolidation and the keyboard behavior without changing product code or appearance.

Validation: the original test fails on current main at the input-event assertion; the revised test passes, including the new focus assertion. The adjacent badge coverage also passes.

Closes #4434 — automated triage

Retained Lit composer controls commit after input bubbles, before the next frame. Preserve the next-Tab and badge placement guarantees without requiring synchronous DOM writes inside the listener.

Closes #4434
@leaf-agent
leaf-agent merged commit b7adfa7 into main Oct 27, 2026
5 checks passed
@leaf-agent
leaf-agent deleted the fix/issue-4434 branch October 27, 2026 10:34
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.

Another option Add control remains empty during the input event

1 participant