material-web/menu
Elliott Marquez b85b57fa79 fix(menu,list,select): do not stopPropagation on native events when handled only prevent default
Fixes #4817

We need to communicate between components when an event has been handled (e.g. keyboard navigation or clicking). This CL focuses on listening to `defaultPrevented` in order to communicate that something was handled. We also have to patch ripple on submenu to make sure that the ripple isn't triggered.

PiperOrigin-RevId: 561748634
2023-08-31 13:48:20 -07:00
..
demo feat(menu)!: allow anchoring with idref string and set element ref on anchorElement 2023-08-29 01:40:36 -07:00
internal fix(menu,list,select): do not stopPropagation on native events when handled only prevent default 2023-08-31 13:48:20 -07:00
test feat(list,menu): implement forced colors 2023-03-29 18:44:13 -07:00
_menu-item.scss fix(menu)!: rename "lib" directory to "internal" 2023-07-24 09:45:01 -07:00
_menu.scss fix(menu)!: rename "lib" directory to "internal" 2023-07-24 09:45:01 -07:00
harness.ts test(list,menu,select)!: clean up internal testing patterns from harnesses 2023-08-31 13:34:31 -07:00
menu_test.ts feat(menu)!: allow anchoring with idref string and set element ref on anchorElement 2023-08-29 01:40:36 -07:00
menu-item.ts refactor(menu)!: events no longer subclass Event but rather use CustomEvent 2023-08-02 17:23:36 -07:00
menu.ts fix(menu,list,select): do not stopPropagation on native events when handled only prevent default 2023-08-31 13:48:20 -07:00
sub-menu-item.ts feat(menu)!: allow anchoring with idref string and set element ref on anchorElement 2023-08-29 01:40:36 -07:00