From 4cfd6c010fcce67224cda8fcbdcb8a6f300e0505 Mon Sep 17 00:00:00 2001 From: Bram Kragten Date: Thu, 4 Apr 2024 19:54:36 +0200 Subject: [PATCH] Fix overflow on submenus (#20415) --- src/components/ha-sub-menu.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/components/ha-sub-menu.ts b/src/components/ha-sub-menu.ts index 15a5afdc47d7..9d01b2019f5b 100644 --- a/src/components/ha-sub-menu.ts +++ b/src/components/ha-sub-menu.ts @@ -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`