diff --git a/packages/core/client/src/schema-component/antd/select/Select.tsx b/packages/core/client/src/schema-component/antd/select/Select.tsx index ce75629e3..72ad91a37 100644 --- a/packages/core/client/src/schema-component/antd/select/Select.tsx +++ b/packages/core/client/src/schema-component/antd/select/Select.tsx @@ -79,6 +79,12 @@ const InternalSelect = connect( if (objectValue) { return ; } + const toValue = (v) => { + if (['tags', 'multiple'].includes(props.mode) || props.multiple) { + return toArr(v); + } + return v; + }; return ( : } - value={value?value:undefined} + value={toValue(value)} {...others} onChange={(changed) => { props.onChange?.(changed === undefined ? null : changed);