This repository was archived by the owner on Oct 27, 2022. It is now read-only.
DatePicker setting date to nullΒ #42
Open
Description
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,
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
.