Skip to content

Commit

Permalink
fix: bug on 31st setMonth
Browse files Browse the repository at this point in the history
  • Loading branch information
joaomarr committed Oct 31, 2024
1 parent 71fd686 commit a3eb145
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/components/Calendar/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -504,9 +504,7 @@ const isSelectedDay = (day) => {
}
}
} else {
const tmpDate = new Date();
tmpDate.setFullYear(cursor.value.getFullYear());
tmpDate.setMonth(cursor.value.getMonth());
const tmpDate = new Date(cursor.value);
tmpDate.setDate(day);
if (Array.isArray(modelValue.value)) {
Expand Down

0 comments on commit a3eb145

Please sign in to comment.