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:
Luca Haid
2025-04-25 08:01:14 +00:00

View File

@@ -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