From a36d5ca25b3775b7018a22d6c65439bc9f11ac2d Mon Sep 17 00:00:00 2001 From: KumJungMin Date: Thu, 18 Jul 2024 22:44:40 +0900 Subject: [PATCH] fix: allow to type the end date equal to the start date --- packages/primevue/src/datepicker/DatePicker.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/primevue/src/datepicker/DatePicker.vue b/packages/primevue/src/datepicker/DatePicker.vue index e45f3f283..52340e88b 100755 --- a/packages/primevue/src/datepicker/DatePicker.vue +++ b/packages/primevue/src/datepicker/DatePicker.vue @@ -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]; } }