We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3d9ac56 commit 666728eCopy full SHA for 666728e
1 file changed
core/src/components/datetime/datetime.tsx
@@ -1035,9 +1035,8 @@ export class Datetime implements ComponentInterface {
1035
}
1036
1037
const activeEl = this.el.shadowRoot!.activeElement as HTMLElement | null;
1038
- if (activeEl) {
1039
- activeEl.blur();
1040
- calendarBodyRef.focus();
+ if (activeEl && activeEl.classList.contains('calendar-day')) {
+ (activeEl.closest('.calendar-body') as HTMLElement | null)?.focus();
1041
1042
});
1043
};
0 commit comments