mirror of
https://github.com/kamranahmedse/developer-roadmap.git
synced 2026-09-24 15:00:31 +08: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