Skip to content

Preserve chosen editor focus when delayed initial autofocus runs #200

Closed

Description

@mvalancy

Opening quick edit can redirect status-note typing into the title when the first dialog animation frame is delayed. In CAPTCHA PR #195 CI 40579557476, LARGE-01 fails because Add remains disabled. The trace shows the note input focused at 746363ms, then its text appended to the title at 746402ms. useModalA11y unconditionally focuses the first field in a deferred animation frame.

Acceptance:

  • Preserve focus already chosen inside the dialog or deliberately moved elsewhere before initial autofocus runs.
  • Preserve normal initial focus, keyboard trapping and lifecycle cleanup.
  • A deterministic regression fails against the existing hook and passes with the correction; run actual persona workflows at their existing desktop/phone sizes with zero retries.
  • Keep the original CI failure; no timeout/retry workaround.

Owned worktree: core-editor-focus-20261027, based on dev 97dc8849db8f257ffa88ab790c4452a8022eeaa6. I am implementing this focused correction separately from authentication. Related #193 and #183.

Activity

  1. mvalancy commented on Oct 27, 2026

    @mvalancy
    MemberAuthor

    Resolved by #201 in verified dev merge 9076d46. Both exact post-merge workflows succeeded; full provenance and actual browser counts are recorded in the PR closeout. No main promotion or deployment is claimed.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions