Destroying the antd modal box does not erase the data

the attributes passed in by modal are as follows:

// 
const editProps = {
  data: allData,
  visible: editVisible,
  destroyOnClose:true,
  successBack: () => {
    this.setState({
      editVisible: false,
    })
    this.props.form.resetFields();
    this.refs.sysInfoTable.reload()
  },
  onCancel: () => {
    this.setState({
      editVisible: false
    })
    this.props.form.resetFields();
  }
}

after closing modal, the child elements of modal will not be destroyed, and the previously modified values will still be displayed. How to modify

Mar.15,2021

< Modal / > the state does not empty automatically when it is turned off by default. If you want new content every time you open it, set destroyOnClose.

as if I didn't make myself clear at first, I used react.
finally, I add the ref attribute to modal, and finally reset the input value through this.refs.modal.resetFields ()

Menu