Fixes for multi selection

This commit is contained in:
Jorge Manrubia
2025-09-18 18:44:15 +02:00
parent 81cae9cbe0
commit 2d575737b5
7 changed files with 12 additions and 13 deletions
@@ -24,13 +24,11 @@ export default class extends Controller {
get #selectedLabel() {
const selectedValue = this.#selectedItemValue()
console.debug("Es ", this.defaultValueValue);
if (this.hasDefaultLabelValue && (selectedValue === this.defaultValueValue || !selectedValue)) {
return this.defaultLabelValue
}
console.debug("EIN", this.#selectedItem);
return this.#selectedItem?.dataset?.comboboxLabel || ""
}