Skip to content

Commit

Permalink
Fix overflow on submenus (#20415)
Browse files Browse the repository at this point in the history
  • Loading branch information
bramkragten authored Apr 4, 2024
1 parent daa9024 commit 4cfd6c0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/components/ha-sub-menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ import { MdSubMenu } from "@material/web/menu/sub-menu";
@customElement("ha-sub-menu")
// @ts-expect-error
export class HaSubMenu extends MdSubMenu {
async show() {
super.show();
this.menu.hasOverflow = false;
}

static override styles: CSSResult[] = [
MdSubMenu.styles,
css`
Expand Down

0 comments on commit 4cfd6c0

Please sign in to comment.