From 7f803bf95b4a72d0ef0ce36bd330097224bb29c4 Mon Sep 17 00:00:00 2001 From: Philipp Fritsche Date: Thu, 18 Aug 2022 10:14:34 +0000 Subject: [PATCH] prevent accidental import of wrong util --- src/utils/focus/getActiveElement.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/utils/focus/getActiveElement.ts b/src/utils/focus/getActiveElement.ts index 725c2524..5f7b0769 100644 --- a/src/utils/focus/getActiveElement.ts +++ b/src/utils/focus/getActiveElement.ts @@ -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) {