react-bootstrap-datetimepicker
react-bootstrap-datetimepicker copied to clipboard
Handling of nullable dates
There are a lot of cases where you either want to provide a datetime or not.
The component should be able to handle ""
or null
on it's dateTime
property, and show nothing accordingly.
The component should never return "Invalid date" as a result of the onChange method. If the textbox is empty, It should return an empty result instead.
To demonstrate the problem try to use the controlled component in the example with the initial state of { date: "" }
or { date: null }
. No way to escape the "Invalid date"-pocalypse with only a mouse.
+1, is there any workaround for handling null dates?
+1 for this and #100
Yes this is important +1
+1
+1
+1