Skip to content

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

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

Activity

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

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