Skip to content

Commit 6dea1c6

Browse files
fix(datetime): days keep in focus after changing the month
1 parent f04fa23 commit 6dea1c6

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

core/src/components/datetime/datetime.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1033,6 +1033,12 @@ export class Datetime implements ComponentInterface {
10331033
if (this.resolveForceDateScrolling) {
10341034
this.resolveForceDateScrolling();
10351035
}
1036+
1037+
const activeEl = document.activeElement as HTMLElement | null;
1038+
if (activeEl) {
1039+
activeEl.blur();
1040+
calendarBodyRef.focus();
1041+
}
10361042
});
10371043
};
10381044

0 commit comments

Comments
 (0)