mirror of
https://github.com/uxsolutions/bootstrap-datepicker.git
synced 2026-02-01 17:27:05 +00:00
Fix off-by-one error
This commit is contained in:
parent
b95a469b21
commit
66278bc88e
2
js/bootstrap-datepicker.js
vendored
2
js/bootstrap-datepicker.js
vendored
@ -855,7 +855,7 @@
|
||||
|
||||
if (new_date < this.dates[i]){
|
||||
// Date being moved earlier/left
|
||||
while (i && new_date < this.dates[i]){
|
||||
while (i>=0 && new_date < this.dates[i]){
|
||||
this.pickers[i--].setUTCDate(new_date);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user