bootstrap icon indicating copy to clipboard operation
bootstrap copied to clipboard

selecting the current day from datepicker does not sync the value with model

Open izzeddeen opened this issue 11 years ago • 3 comments

When you bind datepicker to a model that's initially empty, then select today's date from the calendar, that day will get rendered in the input field but does not sync with the model.

izzeddeen avatar Aug 07 '15 06:08 izzeddeen

Could you please create a plunker to reproduce the error? It is working for me.

Foxandxss avatar Aug 07 '15 09:08 Foxandxss

I have a similar strange error. When setting my date initially, everything works fine. See Plunker: http://plnkr.co/edit/RkByqVhCrcSCXWGXGkWo

The date of today is shown correctly in the view and in the model.

Now test this: Open the popup datepicker and click on "Clear". Then click on "Today". View is fine, the model is wrong. It shows yesterday, I assume because my timezone offset was substracted. It shows 2015-08-09T22:00:00.000Z

nipec avatar Aug 10 '15 14:08 nipec

Closing due to no reproduction. The homepage does not display the incorrect behavior mentioned in the original post.

@nipec there are numerous open issues about that particular bug you mention, so we will be using those tickets to track progress on that issue.

wesleycho avatar Aug 16 '15 09:08 wesleycho