fix: select clear not working

This commit is contained in:
chenos 2022-11-23 11:29:34 +08:00
parent 7bffc94b80
commit 1d2c4f6188

View File

@ -80,6 +80,9 @@ export const Select = connect(
}
allowClear
{...others}
onChange={(changed) => {
props.onChange(changed === undefined ? null : changed);
}}
value={others.value || undefined}
/>
);