Skip to content

Commit 9b53804

Browse files
committed
fix(Combobox): scrollIntoView not working for object item
1 parent a2cebf7 commit 9b53804

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/radix-vue/src/Combobox/ComboboxRoot.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ function resetSearchTerm() {
188188
189189
const activeIndex = computed(() => filteredOptions.value.findIndex(i => isEqual(i, selectedValue.value)))
190190
const selectedElement = computed(() => {
191-
return reactiveItems.value.find(i => i.value === selectedValue.value)?.ref
191+
return reactiveItems.value.find(i => isEqual(i.value, selectedValue.value))?.ref
192192
})
193193
194194
const stringifiedModelValue = computed(() => JSON.stringify(modelValue.value))

0 commit comments

Comments
 (0)