Browse Source

fix(select): mergedValue shouldn't modified by outValue (#4670)

2.x
叡山电车 3 years ago committed by GitHub
parent
commit
2e22b221c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      components/vc-select/generate.tsx

3
components/vc-select/generate.tsx

@ -629,7 +629,10 @@ export default function generateSelector<
props.onChange(outValue, isMultiple.value ? outOptions : outOptions[0]);
}
if (props.value === undefined) {
mergedValue.value = outValue;
}
};
const onInternalSelect = (

Loading…
Cancel
Save