diff --git a/components/vc-select/OptionList.tsx b/components/vc-select/OptionList.tsx index dc3ef08282..de375667ef 100644 --- a/components/vc-select/OptionList.tsx +++ b/components/vc-select/OptionList.tsx @@ -115,7 +115,7 @@ const OptionList = defineComponent({ if (!baseProps.multiple && baseProps.open && props.rawValues.size === 1) { const value = Array.from(props.rawValues)[0]; const index = toRaw(memoFlattenOptions.value).findIndex( - ({ data }) => data.value === value, + ({ data }) => data[props.fieldNames.value] === value, ); if (index !== -1) { setActive(index); diff --git a/components/vc-virtual-list/hooks/useScrollTo.tsx b/components/vc-virtual-list/hooks/useScrollTo.tsx index 8db88a1234..c61d32fe10 100644 --- a/components/vc-virtual-list/hooks/useScrollTo.tsx +++ b/components/vc-virtual-list/hooks/useScrollTo.tsx @@ -106,7 +106,7 @@ export default function useScrollTo( }); }; - syncScroll(3); + syncScroll(5); } }; }