From b7392ecbf95841477c4edde2d8a2b342613af51a Mon Sep 17 00:00:00 2001 From: schmelczerandras Date: Thu, 19 Nov 2020 10:35:08 +0100 Subject: [PATCH] Fix outlines --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();