Skip to content

Commit

Permalink
fix(menu): flatten submenu slot query
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 516879683
  • Loading branch information
material-web-copybara authored and copybara-github committed Mar 15, 2023
1 parent f3fe55e commit ddac76e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion menu/lib/submenuitem/sub-menu-item.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ddac76e

Please sign in to comment.