mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-25 18:26:35 +00:00
Allow custom value for multiple select (#14839)
This commit is contained in:
parent
a7c3774c29
commit
ae04a5457e
@ -118,9 +118,11 @@ export class HaSelectSelector extends LitElement {
|
|||||||
.disabled=${this.disabled}
|
.disabled=${this.disabled}
|
||||||
.required=${this.required && !value.length}
|
.required=${this.required && !value.length}
|
||||||
.value=${this._filter}
|
.value=${this._filter}
|
||||||
|
.items=${options}
|
||||||
.filteredItems=${options.filter(
|
.filteredItems=${options.filter(
|
||||||
(option) => !option.disabled && !value?.includes(option.value)
|
(option) => !option.disabled && !value?.includes(option.value)
|
||||||
)}
|
)}
|
||||||
|
.allowCustomValue=${this.selector.select.custom_value ?? false}
|
||||||
@filter-changed=${this._filterChanged}
|
@filter-changed=${this._filterChanged}
|
||||||
@value-changed=${this._comboBoxValueChanged}
|
@value-changed=${this._comboBoxValueChanged}
|
||||||
></ha-combo-box>
|
></ha-combo-box>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user