diff --git a/src/shared/form/mushroom-select.ts b/src/shared/form/mushroom-select.ts
index 1fe8adbf..49ef466e 100644
--- a/src/shared/form/mushroom-select.ts
+++ b/src/shared/form/mushroom-select.ts
@@ -2,7 +2,10 @@ import { SelectBase } from "@material/mwc-select/mwc-select-base";
import { styles } from "@material/mwc-select/mwc-select.css";
import { css, html, nothing } from "lit";
import { customElement, property } from "lit/decorators.js";
+import {classMap} from 'lit/directives/class-map.js';
import { debounce, nextRender } from "../../ha";
+import './mushroom-select-menu.js'
+
@customElement("mushroom-select")
export class MushroomSelect extends SelectBase {
@@ -17,6 +20,27 @@ export class MushroomSelect extends SelectBase {
return html``;
}
+ override renderMenu() {
+ const classes = this.getMenuClasses();
+ // swap out mwc-menu for mushroom-select-menu. Bindings and template taken from source.
+ return html`
+
+ ${this.renderMenuContent()}
+ `;
+ }
+
connectedCallback() {
super.connectedCallback();
window.addEventListener("translations-updated", this._translationsUpdated);
@@ -47,3 +71,4 @@ declare global {
"mushroom-select": MushroomSelect;
}
}
+