Merge branch 'Vue/tt-icon-select-add-multiple2' into 'master'
added tt-icon select multiple See merge request fronk/thetool!1263
This commit is contained in:
@@ -113,7 +113,7 @@ Vue.component('tt-icon-select', {
|
||||
let currentValues = [...this.internalValue]; // Work with a copy
|
||||
const index = currentValues.findIndex(v => v?.toString() === selectedVal?.toString());
|
||||
|
||||
if (selectedVal === null) { // "Alle" clears selection in multi-mode
|
||||
if (selectedVal === '') { // "Alle" clears selection in multi-mode
|
||||
currentValues = [];
|
||||
this.isOpen = false; // Close after clearing
|
||||
} else if (index > -1) { // Item exists, remove it
|
||||
|
||||
Reference in New Issue
Block a user