ng2-ui / datetime-picker

Angular2 DateTime Picker
https://ng2-ui.github.io/#/datetime-picker
MIT License
121 stars 62 forks source link

Empty value #34

Closed luizfbicalho closed 8 years ago

luizfbicalho commented 8 years ago

Is there a way that I can use the datepicker and set an empty value

It would be interesting to have a property allow null and them have a button to set the date value null.

allenhwkim commented 8 years ago

It's input field. You can set as blank. Does it have to be null?

luizfbicalho commented 8 years ago

If I hit backspace I get an error, and i get invalid date, after that, the date picker doesn't show any value

image

allenhwkim commented 8 years ago

Ok this is a bug then. I will make a fix soon

luizfbicalho commented 8 years ago

thanks a lot

allenhwkim commented 8 years ago

I tried to reproduce this one, however failed. I think you are looking at something different url, e.g., ng2-ui.github.io. , which is no up-to-date. Please test the given plunker in README.md, https://plnkr.co/edit/su2aiL, and make it sure this is reproducible.

luizfbicalho commented 8 years ago

I had some compilation problems using the npm, so I put the source in my project

This way I might be outdated

allenhwkim commented 8 years ago

closing this. Please reopen the issue if problem still exists.