Skip to content

Commit

Permalink
Always show translated labels for ha-form-multi_select (#17360)
Browse files Browse the repository at this point in the history
  • Loading branch information
karwosts authored Jul 20, 2023
1 parent 09e26c8 commit a174826
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/ha-form/ha-form-multi_select.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit a174826

Please sign in to comment.