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

Return empty string when input is empty instead of 'Invalid Date'

Open dehamilton opened this issue 9 years ago • 2 comments

I think this should resolve issue #122. Now instead of performing the formatting regardless of 'value' the formatting will only occur if the moment creation is valid. Otherwise it will return an empty string.

dehamilton avatar Jan 25 '16 18:01 dehamilton

+1 @chollier : is it possible to merge this one? I need this one urgently...

jraeymae avatar Mar 15 '16 21:03 jraeymae

this allows clearing the date, but I suggest a similar fix in the constructor for when you give an empty initial date/time

wiiiim avatar Apr 13 '16 00:04 wiiiim