From 4988ba06044df666a5cadc8908da4e80a7f2e433 Mon Sep 17 00:00:00 2001 From: Kamran Ahmed Date: Fri, 29 Mar 2024 21:09:42 +0000 Subject: [PATCH] Fix filter button autofocuses --- src/components/Roadmaps/RoadmapsPage.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Roadmaps/RoadmapsPage.tsx b/src/components/Roadmaps/RoadmapsPage.tsx index a26e0981b..4a29e9956 100644 --- a/src/components/Roadmaps/RoadmapsPage.tsx +++ b/src/components/Roadmaps/RoadmapsPage.tsx @@ -394,7 +394,7 @@ export function RoadmapsPage() { useEffect(() => { if (!isFilterOpen) { - document?.getElementById('filter-button')?.focus(); + document?.getElementById('filter-button')?.bringIntoView(); } }, [isFilterOpen]);