You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 27, 2022. It is now read-only.
I have a form where DatePicker is used, I can set some particular field with a date value and save the form. After, I want to delete the date to make it null. As I remove value completely, two things happen.
moment.js writes a warning to console,
1. `onChange` handler of field is _not_ triggered.
2. If I reload the form, I can see the date is still there (so, a null field is not submitted to a server).
From code, I see that once a value is removed from the input field, getStateFromProps() will receive an empty string and construct default moment object.
I believe this behavior is wrong and prevents to set fields to null.