Skip to content

ActionMenu: Page scrolls when moving focus to first item #2250

Closed
@siddharthkp

Description

@siddharthkp

Steps to reproduce:

  1. Open an ActionMenu with click (not keyboard). Focus will stay on the anchor.
  2. Press ArrowDown to move focus from anchor to first item

This also fires page scroll event

In docs,

Screen.Recording.2022-08-19.at.9.27.13.AM.mov

In memex,

menu-scroll-key.mov

Impact:

Low, tiny annoyance for users that use both mouse and keyboard in the menu

Solution:

We might need to prevent the scroll event when moving focus for the first time in useMoveFocusToMenuItem

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions