Skip to content

Commit

Permalink
Fix an incorrect index comparison.
Browse files Browse the repository at this point in the history
  • Loading branch information
drgrice1 committed Oct 18, 2024
1 parent b4dbd0c commit e7b16cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion htdocs/js/DatePicker/datepicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
groupRules[activeIndex][1];

for (let i = 0; i < groupRules.length; ++i) {
if (i == activeFieldDate) continue;
if (i == activeIndex) continue;
const thisFieldDate =
groupRules[i][0]?.parentNode._flatpickr.selectedDates[0]?.getTime() || groupRules[i][1];
if (i < activeIndex && thisFieldDate > activeFieldDate)
Expand Down

0 comments on commit e7b16cc

Please sign in to comment.