Skip to content

Commit

Permalink
Merge pull request #6107 from qburst/master
Browse files Browse the repository at this point in the history
fix: #6106, DatePicker: cannot type an end date that is the same as the start date
  • Loading branch information
tugcekucukoglu authored Aug 1, 2024
2 parents 18f3b74 + 81a6b78 commit 7a739a1
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 @@ -1735,7 +1735,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 7a739a1

Please sign in to comment.