react-bootstrap-datetimepicker icon indicating copy to clipboard operation
react-bootstrap-datetimepicker copied to clipboard

Handling of nullable dates

Open SoonDead opened this issue 9 years ago • 6 comments

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.

SoonDead avatar Nov 02 '15 14:11 SoonDead

+1, is there any workaround for handling null dates?

vakopian avatar Dec 18 '15 00:12 vakopian

+1 for this and #100

baronnoraz avatar Jan 08 '16 19:01 baronnoraz

Yes this is important +1

dw72 avatar Jan 08 '16 23:01 dw72

+1

fabricior avatar Jan 19 '16 18:01 fabricior

+1

jraeymae avatar Feb 26 '16 08:02 jraeymae

+1

jamesz avatar Apr 06 '16 06:04 jamesz