Skip to content

Commit

Permalink
fix: Prevent random month jumping when using multi-dates (fixes #539)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jasenkoo committed Aug 24, 2023
1 parent 500392f commit b4f6947
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/VueDatePicker/components/DatePicker/date-picker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ export const useDatePicker = (
return assignRangeValue(dates, fromMount);
}

if (props.multiDates) {
if (props.multiDates && fromMount) {
const lastEntry = dates[dates.length - 1];
return assignSingleValue(lastEntry, fromMount);
}
Expand Down

0 comments on commit b4f6947

Please sign in to comment.