diff --git a/core/src/components/datetime/datetime.tsx b/core/src/components/datetime/datetime.tsx index a7a3c2d1d2c..a81e84ec8b9 100644 --- a/core/src/components/datetime/datetime.tsx +++ b/core/src/components/datetime/datetime.tsx @@ -1033,6 +1033,11 @@ export class Datetime implements ComponentInterface { if (this.resolveForceDateScrolling) { this.resolveForceDateScrolling(); } + + const activeEl = this.el.shadowRoot!.activeElement as HTMLElement | null; + if (activeEl && activeEl.classList.contains('calendar-day')) { + (activeEl.closest('.calendar-body') as HTMLElement | null)?.focus(); + } }); };