Always show translated labels for ha-form-multi_select (#17360)

This commit is contained in:
karwosts 2023-07-20 07:15:59 -07:00 committed by GitHub
parent 09e26c8fd7
commit a1748260d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -91,7 +91,11 @@ export class HaFormMultiSelect extends LitElement implements HaFormElement {
slot="trigger"
.label=${this.label}
.value=${data
.map((value) => this.schema.options![value] || value)
.map(
(value) =>
optionLabel(options.find((v) => optionValue(v) === value)) ||
value
)
.join(", ")}
.disabled=${this.disabled}
tabindex="-1"