Fix overflow on submenus (#20415)

This commit is contained in:
Bram Kragten 2024-04-04 19:54:36 +02:00 committed by GitHub
parent daa9024bff
commit 4cfd6c010f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 0 deletions

View File

@ -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`