From f9bdfdaaf75c442c88d8b94d3852b541356c6ed8 Mon Sep 17 00:00:00 2001 From: rudrakshagarwal4200-ai Date: Sun, 18 Oct 2026 00:46:12 +0530 Subject: [PATCH] Enhance value processing in componentDidLoad Added a check to re-process value if assigned before componentDidLoad. --- core/src/components/datetime/datetime.tsx | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/core/src/components/datetime/datetime.tsx b/core/src/components/datetime/datetime.tsx index e9bb5d47086..f3874d1970b 100644 --- a/core/src/components/datetime/datetime.tsx +++ b/core/src/components/datetime/datetime.tsx @@ -1194,6 +1194,15 @@ export class Datetime implements ComponentInterface { componentDidLoad() { const { el, intersectionTrackerRef } = this; + /** + * If a value was assigned before componentDidLoad (e.g. by Angular NgModel or + * zone.js microtasks before Stencil's watch-ready flag is active), re-process + * the value so working parts and wheels reflect the bound value (#31565). + */ + if (this.hasValue()) { + this.processValue(this.value); + } + /** * If a scrollable element is hidden using `display: none`, * it will not have a scroll height meaning we cannot scroll elements