Don't open menus on MenuButtons when disabled.

Review Request #13883 — Created May 21, 2024 and submitted

Information

Ink
master

Reviewers

BaseMenuHandleView now allows subclasses to specify whether a menu is
allowed to displayed, depending on the state of the component. This is
done via a canOpenMenu() function, which subclasses can override.

MenuButtonView overrides this to disable menus when the component is
disabled, ensuring it's fully non-interactive.

Unit tests passed.

Tested this in Storybook.

Summary ID
Don't open menus on MenuButtons when disabled.
`BaseMenuHandleView` now allows subclasses to specify whether a menu is allowed to displayed, depending on the state of the component. This is done via a `canOpenMenu()` function, which subclasses can override. `MenuButtonView` overrides this to disable menus when the component is disabled, ensuring it's fully non-interactive.
8579c075c5057595844b7388f750949d9a7aad71
david
  1. Ship It!
  2. 
      
maubin
  1. Ship It!
  2. 
      
chipx86
Review request changed
Status:
Completed
Change Summary:
Pushed to master (311eda8)