20
Views
2
Comments
[DateRangePicker] Problem encountered when selecting the last available year
Question
daterangepicker
Web icon
Forge asset by Niels Favreau

The problem encountered when I select the last year available in the calendar. We know that the system will not last that long yet still it was complained as bug by our client so we don't have any choice but to fix this.


after selecting the last year (2120) the other calendar did not update its year also it is still 2020


after selecting a date for 2120 the calendar does not show again


That is our problem how can we make it work properly?

2021-03-05 15-08-01
Rogério Sousa
Staff

Rogelio Guanlao wrote:

The problem encountered when I select the last year available in the calendar. We know that the system will not last that long yet still it was complained as bug by our client so we don't have any choice but to fix this.


after selecting the last year (2120) the other calendar did not update its year also it is still 2020


after selecting a date for 2120 the calendar does not show again


That is our problem how can we make it work properly?

You can try to set the date of the second calendar when selecting the the first date in the first calendar (e.g. onChange)

2022-07-07 18-45-50
Niels Favreau

Can you send me an example espace?
That way i can have the same configuration as you do.

When i try it out on the website, i get the same results as you do (where the end year doesnt update). However, it sorted itself whenever i put 'AutoApply' to true

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.