fix: select null value (#1961)
This commit is contained in:
parent
261ca0dbbb
commit
98be397574
@ -86,7 +86,7 @@ const InternalSelect = connect(
|
|||||||
allowClear
|
allowClear
|
||||||
dropdownMatchSelectWidth={false}
|
dropdownMatchSelectWidth={false}
|
||||||
notFoundContent={loading ? <Spin /> : <Empty image={Empty.PRESENTED_IMAGE_SIMPLE} />}
|
notFoundContent={loading ? <Spin /> : <Empty image={Empty.PRESENTED_IMAGE_SIMPLE} />}
|
||||||
value={value}
|
value={value?value:undefined}
|
||||||
{...others}
|
{...others}
|
||||||
onChange={(changed) => {
|
onChange={(changed) => {
|
||||||
props.onChange?.(changed === undefined ? null : changed);
|
props.onChange?.(changed === undefined ? null : changed);
|
||||||
|
Loading…
Reference in New Issue
Block a user