From ee98682265080aa3c93418a0a922f6c66a567a4a Mon Sep 17 00:00:00 2001 From: lucaQ Date: Sat, 6 Jan 2024 15:35:02 +0100 Subject: [PATCH 1/2] fix #14484 the initial load now respect the dateFormat when dataType is set to "string" --- src/app/components/calendar/calendar.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/app/components/calendar/calendar.ts b/src/app/components/calendar/calendar.ts index 212b61047cc..ca2ffeb9899 100755 --- a/src/app/components/calendar/calendar.ts +++ b/src/app/components/calendar/calendar.ts @@ -3008,7 +3008,9 @@ export class Calendar implements OnInit, OnDestroy, ControlValueAccessor { } } } - + if(this.dataType === 'string'){ + this.updateModel(value); + } this.updateInputfield(); this.updateUI(); this.cd.markForCheck(); From 9e74ece2ac7d441e2c7e0e111fa6f130b4d33c73 Mon Sep 17 00:00:00 2001 From: lucaQ Date: Sat, 6 Jan 2024 15:52:40 +0100 Subject: [PATCH 2/2] fix prettier --- 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 ca2ffeb9899..ddca239abed 100755 --- a/src/app/components/calendar/calendar.ts +++ b/src/app/components/calendar/calendar.ts @@ -3008,7 +3008,7 @@ export class Calendar implements OnInit, OnDestroy, ControlValueAccessor { } } } - if(this.dataType === 'string'){ + if (this.dataType === 'string') { this.updateModel(value); } this.updateInputfield();