The select component of ant designd, how to clear the selected value?

select component of ant designd, how to clear the selected value?

Feb.21,2022

you can configure allowClear
or use controlled value to control its value without defaultValue


clipboard.png


resetFields


if you are in the form, try using the setFieldsValue attribute

Menu