How does antd DatePicker dynamically empty the date?

1. If the plug-in is not directly set to empty without moment, the plug-in must not be recognized as follows

2moment

how can I set up to clear DatePicker here? -sharp-sharp-sharp problem description

Nov.30,2021

this.props.form.resetFields();

clipboard.png


Modal add destroyOnClose (destroy child elements in Modal when closed)

add resetFields (); when the pop-up box is triggered


value= {null}


I'd like to ask, what should I do if I can't use this.props.form.resetFields, if I don't use Form?

Menu