From 8f60d0d33d6a2e0cb3f8d3653ea148ec6c52c124 Mon Sep 17 00:00:00 2001 From: Eduard Heller Date: Sat, 10 Feb 2024 01:38:15 +0100 Subject: [PATCH] Fix #14590 and #12286 - Single dates only calender not possible with hand typing --- src/app/components/calendar/calendar.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/components/calendar/calendar.ts b/src/app/components/calendar/calendar.ts index ce28618cce4..f9e747371a7 100755 --- a/src/app/components/calendar/calendar.ts +++ b/src/app/components/calendar/calendar.ts @@ -2740,7 +2740,7 @@ export class Calendar implements OnInit, OnDestroy, ControlValueAccessor { } } else if (value.every((v: any) => 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.length > 1 && value[1] >= value[0] ? true : false); } } return isValid;