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 committed Aug 18, 2022
1 parent 7a1e5c9 commit cbe1391
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 cbe1391

Please sign in to comment.