fix: default value for multiple select cannot be set (#2031)
This commit is contained in:
parent
3332a488ca
commit
b64ce6a2b3
@ -88,8 +88,11 @@ const InternalSelect = connect(
|
||||
}
|
||||
const toValue = (v) => {
|
||||
if (['tags', 'multiple'].includes(props.mode) || props.multiple) {
|
||||
if (v) {
|
||||
return toArr(v);
|
||||
}
|
||||
return undefined;
|
||||
}
|
||||
return v;
|
||||
};
|
||||
return (
|
||||
|
Loading…
Reference in New Issue
Block a user