fix: multiple select should assigned null after clear value (#2822)
This commit is contained in:
parent
3f363f67b8
commit
2a8cc10faa
@ -124,8 +124,9 @@ const InternalAssociationSelect = observer((props: AssociationSelectProps) => {
|
||||
value={value || innerValue}
|
||||
service={service}
|
||||
onChange={(value) => {
|
||||
setInnerValue(value);
|
||||
props.onChange?.(value);
|
||||
const val = value?.length !== 0 ? value : null;
|
||||
setInnerValue(val);
|
||||
props.onChange?.(val);
|
||||
}}
|
||||
CustomDropdownRender={addMode === 'quickAdd' && QuickAddContent}
|
||||
></RemoteSelect>
|
||||
|
Loading…
Reference in New Issue
Block a user