1
0
mirror of https://github.com/kamranahmedse/developer-roadmap.git synced 2025-08-29 20:21:50 +02:00

Fix filter button autofocuses

This commit is contained in:
Kamran Ahmed
2024-03-29 21:09:42 +00:00
parent fd48e980cd
commit 4988ba0604

View File

@@ -394,7 +394,7 @@ export function RoadmapsPage() {
useEffect(() => { useEffect(() => {
if (!isFilterOpen) { if (!isFilterOpen) {
document?.getElementById('filter-button')?.focus(); document?.getElementById('filter-button')?.bringIntoView();
} }
}, [isFilterOpen]); }, [isFilterOpen]);