bootstrap icon indicating copy to clipboard operation
bootstrap copied to clipboard

date picker regression: min-,init-,max- date only work with strings while ng-model only works with object

Open arisbartee opened this issue 10 years ago • 2 comments

I've have just updated to 1.1.0 from 0.13.4. I've come across a regression with the following options: min-,init-,max-date only work with strings while ng-model only works with a date object

In version 0.13.4 I use a string as my input value with the format: "yyyy-MM-dd". I use 2 date pickers(dp1 and p2). I also use 3 date values(d1, d2, today). The problem can be describe this way

dp1 -> min-date="" max-date="d2" init-date="" ng-model="d1" dp2 -> min-date="d1" max-date="" init-date="d1" ng-model="d2"

The expected results are: when d2 changes the max-date for dp1 should change. when d1 changes the min-date for dp2 should change. currently this does not happen because the ng-model value can not be re-used.

arisbartee avatar Jan 24 '16 05:01 arisbartee

Can you post a reproduction in Plunker?

wesleycho avatar Jan 24 '16 09:01 wesleycho

Closing due to lack of reproduction.

wesleycho avatar Jan 31 '16 22:01 wesleycho