fix: set to null, not undefined

This commit is contained in:
chenos 2021-01-02 22:43:37 +08:00
parent 090394145a
commit ad4eabd569

View File

@ -55,7 +55,7 @@ function DrawerSelectComponent(props) {
onChange(data.value);
setSelectedRowKeys([data.value]);
} else {
onChange(data);
onChange(null);
setSelectedRowKeys([]);
}
}}