diff --git a/src/index.ts b/src/index.ts index 6670681..c076e4f 100644 --- a/src/index.ts +++ b/src/index.ts @@ -20,7 +20,7 @@ const addSupportForTabNavigation = () => }); const removeUnnecessaryOutlines = () => - (document.onclick = e => (e.target as HTMLElement)?.blur()); + (document.onclick = () => (document.activeElement as HTMLElement).blur?.()); create(); addSupportForTabNavigation();