'Reset the current date in datepicker of ANTD on modal reopen in react js

Problem

After closing the modal the datepicker of antd not reset If user select the date 2029/Feb/02 and close the modal after reopen the modal in datepicker selected year is 2029

What I want

After reopen the modal the today date would be selected

What I tried

According to doc Antd if defaultPickerValue is set then it should show the current date on modal reopen, but it's not working

defaultPickerValue={moment()}

Code

Working example



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source