From b1c8e01bf5faa7577c64960463e442029cd55fdc Mon Sep 17 00:00:00 2001 From: rehanrehman389 Date: Fri, 2 Jan 2026 12:18:03 +0530 Subject: [PATCH 1/2] fix: show options on focus and filter selected values --- frontend/src/components/Controls/MultiSelect.vue | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/frontend/src/components/Controls/MultiSelect.vue b/frontend/src/components/Controls/MultiSelect.vue index 7c9c2bd6..aa9dbc8f 100644 --- a/frontend/src/components/Controls/MultiSelect.vue +++ b/frontend/src/components/Controls/MultiSelect.vue @@ -19,6 +19,14 @@ showOptions = true } " + @focus=" + () => { + showOptions = true + if (!filterOptions.data || filterOptions.data.length === 0) { + reload('') + } + } + " autocomplete="off" /> @@ -152,9 +160,6 @@ const selectedValue = computed({ get: () => query.value || '', set: (val) => { query.value = '' - if (val) { - showOptions.value = false - } val?.value && addValue(val.value) }, }) @@ -183,7 +188,8 @@ const filterOptions = createResource({ const options = computed(() => { setFocus() - return filterOptions.data || [] + const allOptions = filterOptions.data || [] + return allOptions.filter((option) => !values.value?.includes(option.value)) }) function reload(val) { From ea9975db2cf9a2230844067dcd1a2a45f133c17b Mon Sep 17 00:00:00 2001 From: rehanrehman389 Date: Fri, 2 Jan 2026 12:33:09 +0530 Subject: [PATCH 2/2] fix: fix build failure --- frontend/src/pages/Quizzes.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/frontend/src/pages/Quizzes.vue b/frontend/src/pages/Quizzes.vue index fe72ac30..f01742ea 100644 --- a/frontend/src/pages/Quizzes.vue +++ b/frontend/src/pages/Quizzes.vue @@ -112,7 +112,12 @@ }" >