We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b9000c8 commit 3ca5209Copy full SHA for 3ca5209
components/vc-select/OptionList.tsx
@@ -115,7 +115,7 @@ const OptionList = defineComponent({
115
if (!baseProps.multiple && baseProps.open && props.rawValues.size === 1) {
116
const value = Array.from(props.rawValues)[0];
117
const index = toRaw(memoFlattenOptions.value).findIndex(
118
- ({ data }) => data.value === value,
+ ({ data }) => data[props.fieldNames.value] === value,
119
);
120
if (index !== -1) {
121
setActive(index);
components/vc-virtual-list/hooks/useScrollTo.tsx
@@ -106,7 +106,7 @@ export default function useScrollTo(
106
});
107
};
108
109
- syncScroll(3);
+ syncScroll(5);
110
}
111
112
0 commit comments