Skip to content

Commit

Permalink
prevent accidental import of wrong util
Browse files Browse the repository at this point in the history
  • Loading branch information
ph-fritsche authored and Christian24 committed Sep 15, 2023
1 parent e36e922 commit 7f803bf
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/utils/focus/getActiveElement.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import {isDisabled} from '../misc/isDisabled'

export function getActiveElement(
document: Document | ShadowRoot,
): Element | null {
function getActiveElement(document: Document | ShadowRoot): Element | null {
const activeElement = document.activeElement

if (activeElement?.shadowRoot) {
Expand Down

0 comments on commit 7f803bf

Please sign in to comment.