Not enough years displayed in date picker
damonfutter opened this issue · 1 comments
damonfutter commented
In the date picker, there are no 'past' years in the drop-down for the year.
This makes it difficult to choose dates for years in the past.
If the comments on lines 220-221 of "src/Calendar.js" are accurate, it should be displaying 10 years into the past and 10 years into the future(e.g. 2003 -> 2023). In that case, it looks as if there is an incorrectly placed bracket on line 220.
(this.year < today.year()) - 10 ? this.year : today.year() - 10,
should be
(this.year < today.year() - 10) ? this.year : today.year() - 10,
jbest84 commented
@damonfutter Thank you for the report and finding the fix. I will push the commit asap.