Skip to content

Commit

Permalink
fix: #6106, DatePicker: cannot type an end date that is the same as t…
Browse files Browse the repository at this point in the history
…he start date
  • Loading branch information
ANTONA09 committed Jul 25, 2024
1 parent cbc6186 commit 81a6b78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/primevue/src/datepicker/DatePicker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -1731,7 +1731,7 @@ export default {
}
} else if (value.every((v) => this.isSelectable(v.getDate(), v.getMonth(), v.getFullYear(), false))) {
if (this.isRangeSelection()) {
isValid = value.length > 1 && value[1] > value[0] ? true : false;
isValid = value.length > 1 && value[1] >= value[0];
}
}
Expand Down

0 comments on commit 81a6b78

Please sign in to comment.