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:
@@ -394,7 +394,7 @@ export function RoadmapsPage() {
|
||||
|
||||
useEffect(() => {
|
||||
if (!isFilterOpen) {
|
||||
document?.getElementById('filter-button')?.focus();
|
||||
document?.getElementById('filter-button')?.bringIntoView();
|
||||
}
|
||||
}, [isFilterOpen]);
|
||||
|
||||
|
Reference in New Issue
Block a user