Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit cbe1391

Browse files
prevent accidental import of wrong util
1 parent 7a1e5c9 commit cbe1391

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

‎src/utils/focus/getActiveElement.ts‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
import {isDisabled} from '../misc/isDisabled'
22

3-
export function getActiveElement(
4-
document: Document | ShadowRoot,
5-
): Element | null {
3+
function getActiveElement(document: Document | ShadowRoot): Element | null {
64
const activeElement = document.activeElement
75

86
if (activeElement?.shadowRoot) {

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /