From ae04a5457e2484bb6967dcf89b3b37779b5b4f56 Mon Sep 17 00:00:00 2001 From: Paul Bottein Date: Wed, 21 Dec 2022 11:51:35 +0100 Subject: [PATCH] Allow custom value for multiple select (#14839) --- src/components/ha-selector/ha-selector-select.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/ha-selector/ha-selector-select.ts b/src/components/ha-selector/ha-selector-select.ts index 4029846998..9602131040 100644 --- a/src/components/ha-selector/ha-selector-select.ts +++ b/src/components/ha-selector/ha-selector-select.ts @@ -118,9 +118,11 @@ export class HaSelectSelector extends LitElement { .disabled=${this.disabled} .required=${this.required && !value.length} .value=${this._filter} + .items=${options} .filteredItems=${options.filter( (option) => !option.disabled && !value?.includes(option.value) )} + .allowCustomValue=${this.selector.select.custom_value ?? false} @filter-changed=${this._filterChanged} @value-changed=${this._comboBoxValueChanged} >