Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
高艳兵 committed May 31, 2024
1 parent 33bd6d7 commit 58592fc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -452,8 +452,11 @@ const Select = React.forwardRef<BaseSelectRef, SelectProps<any, DefaultOptionTyp
// =========================== Change ===========================
const triggerChange = (values: DraftValueType) => {
const labeledValues = convert2LabelValues(values);
setInternalValue(labeledValues);

if(!('value' in props)){
setInternalValue(labeledValues);
}

if (
onChange &&
// Trigger event only when value changed
Expand Down

0 comments on commit 58592fc

Please sign in to comment.