mirror of
https://github.com/recloudstream/website.git
synced 2024-08-15 03:18:45 +00:00
fix maybe idk
This commit is contained in:
parent
80811c0995
commit
d9a1f5328e
1 changed files with 0 additions and 1 deletions
|
@ -22,7 +22,6 @@ function CompatBtn({autoFocus, href, onClick, group, target, children, className
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (isBrowser) {
|
if (isBrowser) {
|
||||||
window.addEventListener("keyup", (ev) => {
|
window.addEventListener("keyup", (ev) => {
|
||||||
if (!focused) return;
|
|
||||||
if (document.activeElement !== ref.current) return;
|
if (document.activeElement !== ref.current) return;
|
||||||
if (ev.key === "Enter" || ev.key === " ") {
|
if (ev.key === "Enter" || ev.key === " ") {
|
||||||
ref.current?.click()
|
ref.current?.click()
|
||||||
|
|
Loading…
Reference in a new issue