Skip to content

Commit 57bb5ad

Browse files
authored
feat(VCombobox): scroll to first item on search result (#20572) (#21255)
1 parent 1a98d03 commit 57bb5ad

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/vuetify/src/components/VCombobox/VCombobox.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ export const VCombobox = genericComponent<new <
154154
_search.value = val ?? ''
155155
if (!props.multiple && !hasSelectionSlot.value) {
156156
model.value = [transformItem(props, val)]
157+
nextTick(() => vVirtualScrollRef.value?.scrollToIndex(0))
157158
}
158159

159160
if (val && props.multiple && props.delimiters?.length) {

0 commit comments

Comments
 (0)