Skip to content

Commit 3d9ac56

Browse files
update core/src/components/datetime/datetime.tsx
Co-authored-by: Shane <shane@shanessite.net>
1 parent 6dea1c6 commit 3d9ac56

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

core/src/components/datetime/datetime.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1034,7 +1034,7 @@ export class Datetime implements ComponentInterface {
10341034
this.resolveForceDateScrolling();
10351035
}
10361036

1037-
const activeEl = document.activeElement as HTMLElement | null;
1037+
const activeEl = this.el.shadowRoot!.activeElement as HTMLElement | null;
10381038
if (activeEl) {
10391039
activeEl.blur();
10401040
calendarBodyRef.focus();

0 commit comments

Comments
 (0)