From ddac76e3bce71cc42fe74d4c65a1418a321aeecb Mon Sep 17 00:00:00 2001 From: Material Web Team Date: Wed, 15 Mar 2023 11:21:39 -0700 Subject: [PATCH] fix(menu): flatten submenu slot query PiperOrigin-RevId: 516879683 --- menu/lib/submenuitem/sub-menu-item.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/menu/lib/submenuitem/sub-menu-item.ts b/menu/lib/submenuitem/sub-menu-item.ts index 9b03ae2c71..9edf9caad3 100644 --- a/menu/lib/submenuitem/sub-menu-item.ts +++ b/menu/lib/submenuitem/sub-menu-item.ts @@ -45,7 +45,8 @@ export class SubMenuItem extends MenuItemEl { @property({type: Number, attribute: 'hover-close-delay'}) hoverCloseDelay = 400; - @queryAssignedElements({slot: 'submenu'}) protected menus!: Menu[]; + @queryAssignedElements({slot: 'submenu', flatten: true}) + protected menus!: Menu[]; protected override keepOpenOnClick = true; protected previousOpenTimeout = 0;