Skip to content

[Bug]: After selecting something in select, keyboard focus jumps to start of page #33467

@Sidnioulz

Description

@Sidnioulz

Describe the bug

When I select something in a toolbar select (e.g. viewport or background), and enter/escape, focus jumps back to the start of the document instead of returning on the select trigger.

Reproduction link

npm create storybook@latest

Reproduction steps

  1. Kb nav to toolbar background button
  2. Press ArrowDown to enter
  3. Press Esc to exit
  4. Press Tab, notice you're not on the toolbar any more

System

n/a

Additional context

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions