You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem I have is that when I use the setDates method and try to change month or year. It stays stuck and won't let me choose another month or year. I use it to sort the dates. The dates get sorted but my datepicker get's frozen.
Datepicker version used
1.9.0 and also tried with 1.10.0
Example code
I use this code to sort the dates in a multidate datepicker but when I want to change the month it won't let me. Let's say I am in August. Then I can't go to September or July and also I can't change years
datepicker.datepicker().on("show", e => {
let { dates } = e
if(dates.length > 0){
dates.sort((a, b) => a - b)
datepicker.datepicker("setDates", dates)
}
})
These are the options for my datepicker
{ weekStart: 1, language: "es", autoclose: false, maxViewMode: 2, minViewMode: 0, todayHighlight: true, multidate: true, multidateSeparator: ", ", format: "dd/mm/yyyy" }
The text was updated successfully, but these errors were encountered:
The problem I have is that when I use the setDates method and try to change month or year. It stays stuck and won't let me choose another month or year. I use it to sort the dates. The dates get sorted but my datepicker get's frozen.
Datepicker version used
1.9.0 and also tried with 1.10.0
Example code
I use this code to sort the dates in a multidate datepicker but when I want to change the month it won't let me. Let's say I am in August. Then I can't go to September or July and also I can't change years
datepicker.datepicker().on("show", e => {
let { dates } = e
if(dates.length > 0){
dates.sort((a, b) => a - b)
datepicker.datepicker("setDates", dates)
}
})
These are the options for my datepicker
{ weekStart: 1, language: "es", autoclose: false, maxViewMode: 2, minViewMode: 0, todayHighlight: true, multidate: true, multidateSeparator: ", ", format: "dd/mm/yyyy" }
The text was updated successfully, but these errors were encountered: