Commit 2f6288b5 authored by kenve's avatar kenve Committed by 陈帅

fix: TagSelect can't clear value when Form run resetFields (#3031)

parent def48f12
......@@ -28,8 +28,8 @@ class TagSelect extends Component {
}
static getDerivedStateFromProps(nextProps) {
if ('value' in nextProps && nextProps.value) {
return { value: nextProps.value };
if ('value' in nextProps) {
return { value: nextProps.value || [] };
}
return null;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment