diff --git a/client/src/components/inputs/DropdownInput.vue b/client/src/components/inputs/DropdownInput.vue index 78db4fa..0ae123b 100644 --- a/client/src/components/inputs/DropdownInput.vue +++ b/client/src/components/inputs/DropdownInput.vue @@ -127,7 +127,7 @@ function focusIn() { function toggle(key: any) { if (multiple) { const mv = modelValue as Index[]; - if (mv?.includes(key)) mv?.splice(mv?.indexOf(key), 1); + if (mv?.some((x: Index) => x == key)) mv?.splice(mv?.indexOf(key), 1); else mv?.push(key); return; } @@ -205,10 +205,10 @@ function handleKeydown(e: KeyboardEvent) {