mirror of
https://github.com/kamranahmedse/developer-roadmap.git
synced 2025-08-29 12:10:22 +02:00
Fix filter button autofocuses
This commit is contained in:
@@ -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]);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user