Closed raboui closed 8 years ago
Yeah looks like there's an out of bounds edge case here, any chance you'd be interested in looking into this? I probably won't get to it for a little while.
Had a look and put in a fix for the issue, however as I was testing found another bug.
On the examples page this currently sets a date of 2016/02/0. In the version with the fix for this issue date appears as 2015/02/31 which is also incorrect.
Thoughts on how this should behave? Maybe disable setting of date in the input field until a day has been selected. This is similar to the bootstrap datepicker. https://eonasdan.github.io/bootstrap-datetimepicker/
Yeah, I think that would be a reasonable solution here. Thanks for digging into this by the way.
The following script error occurs when attempting to select a year from the datepicker. Uncaught Error: No item 2 in vector of length 2
The problem only seems to occur when:
The only way to get the datepicker to work again is to reload the page This behaviour also occurs on the reagent-forms examples page.