Hi all:
I’m using charge card and noticed that all dropdown defined as ha-button-menu stops working. All list items in the dropdown are displayed as a list, and clicking the icon cannot hide the list.
The code uses mwc-list-item and mwc-list, anybody aware of any change in 2026.02 that could cause the issue? Many thanks!
const sources = carddata.dropdownitems != null ? carddata.dropdownitems : this.currentlimits;
const selected = sources.indexOf(Number(carddata.useval));
return html`
<div class="collapsible-item">
<ha-button-menu @click="${(e) => e.stopPropagation()}">
<div slot="trigger">
<div class="tooltip">
<ha-icon icon="${carddata.icon}"></ha-icon>
<br />${carddata.useval} ${carddata.unit_show ? carddata.unit : ''}
<span class="tooltiptext">${this.loc(carddata.text, "common", this.brand)} ${carddata.unit_showontext ? "(" +carddata.unit +")" : ''}</span>
</div>
</div>
<mwc-list>
${sources.map(
(item, index) =>
html`<mwc-list-item
?activated=${selected === index}
value=${item}
@click=${(event) => this.createServiceData(carddata.service, true, carddata.service_data, event)}
>
${item}
</mwc-list-item>`
)}
</mwc-list>
</ha-button-menu>
</div>
`;```