提交 2f6288b5 编写于 作者: K kenve 提交者: 陈帅

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

上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册