Skip to content

Commit

Permalink
fix(menu): fix submenu SSR left keyboard close navigation
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 569664658
  • Loading branch information
Elliott Marquez authored and copybara-github committed Sep 30, 2023
1 parent d7b40fb commit d6f7220
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions menu/internal/submenu/sub-menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,11 @@ export class SubMenu extends LitElement {
`;
}

protected override firstUpdated() {
// slotchange is not fired if the contents have been SSRd
this.onSlotchange();
}

/**
* Shows the submenu.
*/
Expand Down

0 comments on commit d6f7220

Please sign in to comment.