From b199444fef864dbbe14420c3922378741267dda3 Mon Sep 17 00:00:00 2001 From: Mamalizz Date: Mon, 12 May 2025 18:53:45 +0330 Subject: [PATCH] responsived combo box --- frontend/components/global/ComboBox.vue | 52 +++++++++++++++++-------- 1 file changed, 35 insertions(+), 17 deletions(-) diff --git a/frontend/components/global/ComboBox.vue b/frontend/components/global/ComboBox.vue index 70535bd..42a3718 100644 --- a/frontend/components/global/ComboBox.vue +++ b/frontend/components/global/ComboBox.vue @@ -47,9 +47,7 @@ watch( watch( () => modelValue.value, (newValue) => { - const target = options.value - .flatMap((option) => option.children) - .find((child) => child.id == newValue); + const target = options.value.flatMap((option) => option.children).find((child) => child.id == newValue); value.value = target || undefined; }, @@ -58,9 +56,13 @@ watch(