From d9a1f5328e8ce2e8a2ba6b76de0e283ca6f6b0ba Mon Sep 17 00:00:00 2001 From: Cloudburst <18114966+C10udburst@users.noreply.github.com> Date: Wed, 21 Sep 2022 18:13:15 +0200 Subject: [PATCH] fix maybe idk --- src/components/compatbtn.jsx | 1 - 1 file changed, 1 deletion(-) diff --git a/src/components/compatbtn.jsx b/src/components/compatbtn.jsx index d87f0fa..f887aa0 100644 --- a/src/components/compatbtn.jsx +++ b/src/components/compatbtn.jsx @@ -22,7 +22,6 @@ function CompatBtn({autoFocus, href, onClick, group, target, children, className useEffect(() => { if (isBrowser) { window.addEventListener("keyup", (ev) => { - if (!focused) return; if (document.activeElement !== ref.current) return; if (ev.key === "Enter" || ev.key === " ") { ref.current?.click()