From a40dd4f22367b4f9973bf639bcea437a3a8cb6c2 Mon Sep 17 00:00:00 2001 From: Jas Date: Mon, 29 Apr 2024 09:05:32 +0200 Subject: [PATCH] fix(ComboBox): flush option changes later (#883) --- packages/radix-vue/src/Combobox/ComboboxRoot.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/radix-vue/src/Combobox/ComboboxRoot.vue b/packages/radix-vue/src/Combobox/ComboboxRoot.vue index fdf50fa09..097e304b5 100644 --- a/packages/radix-vue/src/Combobox/ComboboxRoot.vue +++ b/packages/radix-vue/src/Combobox/ComboboxRoot.vue @@ -154,7 +154,10 @@ const options = ref([]) as Ref watch(() => itemMapSize.value, () => { options.value = getItems().map(i => i.value) -}, { immediate: true }) +}, { + immediate: true, + flush: 'post', +}) const filteredOptions = computed(() => { if (isUserInputted.value) {