diff --git a/src/app/stories/components.tsx b/src/app/stories/components.tsx index e21443c..b6c76ff 100644 --- a/src/app/stories/components.tsx +++ b/src/app/stories/components.tsx @@ -255,7 +255,11 @@ function FilteringHandler({ data-item="search-button" onClick={() => { setShowSearch((cur) => { - input.current?.focus(); + if (!cur) { + input.current?.focus(); + } else { + input.current?.blur(); + } if (cur && !input.current?.value && search) { router.push('/stories'); router.refresh(); diff --git a/src/components/footer/autobacklink.tsx b/src/components/footer/autobacklink.tsx index 7bf9745..5fab728 100644 --- a/src/components/footer/autobacklink.tsx +++ b/src/components/footer/autobacklink.tsx @@ -27,9 +27,9 @@ function AutoBacklinks() { .map((_, i) => (