Skip to content

Commit ad3aaec

Browse files
authored
fix: select always trigger first active (#3869)
1 parent a8b54e8 commit ad3aaec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/vc-select/OptionList.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ const OptionList = defineComponent<OptionListProps, { state?: any }>({
141141
if (!props.multiple && props.open && props.values.size === 1) {
142142
const value = Array.from(props.values)[0];
143143
const index = props.flattenOptions.findIndex(({ data }) => data.value === value);
144-
// setActive(index);
144+
setActive(index);
145145
scrollIntoView(index);
146146
}
147147
// Force trigger scrollbar visible when open

0 commit comments

Comments
 (0)