Skip to content

Defect: UX-001: Applying a method picker selection does not restore keyboard focus #15

Description

@eviltester

Parent testing issue: #1

Source defect report: https://github.com/eviltester/anywaydata-ai-testing/blob/main/docs/testing/20260625/issue-230-001/defects/ux-001-apply-does-not-restore-focus.md
Testing artifact folder: https://github.com/eviltester/anywaydata-ai-testing/tree/main/docs/testing/20260625/issue-230-001
Original grid-table-editor story: eviltester/grid-table-editor#230
Original grid-table-editor PR: eviltester/grid-table-editor#247

The detailed defect report from the testing artifact is copied below.


UX-001: Applying a method picker selection does not restore keyboard focus

Severity: Low to medium

Status: Defect candidate, repeatable in automated browser pass

Area: Method picker dialog, focus restoration, generator workflow

Evidence:

  • Screenshot: ../screenshots/ux-regression-05-method-picker-search-httpmethod.png
  • State data: ../support/ux-regression-flow-results.json, labels selected-httpmethod-before-apply and after-apply-httpmethod

Steps:

  1. Open https://eviltester.github.io/grid-table-editor/generator.html.
  2. Change the schema row type to domain.
  3. Click Select domain command.
  4. Search for internet.httpMethod.
  5. Select internet.httpMethod.
  6. Click Apply.

Observed:

The dialog closes and the row updates to internet.httpMethod, but focus moves to the document body. The captured state after apply was activeTag: "BODY" and focusOnPickerButton: false.

Expected:

After a modal apply action, focus should return to the invoking internet.httpMethod command picker button, matching the behavior observed for Escape, Cancel, and backdrop close.

Why this matters:

Keyboard users lose their position after applying a method and must rediscover where focus is. This is especially noticeable because the adjacent Cancel, Escape, and backdrop close paths do restore focus correctly.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions