Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix focus issue in component filter, view filters when >1 filters applied #1808

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

hidde
Copy link
Member

@hidde hidde commented Dec 11, 2024

(don't mind the branch name, I didn't move the filter, I only removed the dependency on Docusaurus' copy of React Router for this specific feature)

Veranderingen

  • We gebruiken nu de History API ipv de useHistory die Docusaurus vanuit React Router re-export. Dit fixt gelijk ook het issue dat focus teruggaat naar de body bij change
  • De filter staat nu open als er filters actief zijn, ipv altijd gesloten

Copy link

vercel bot commented Dec 11, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
documentatie ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 17, 2024 1:53pm

focus was being reset to body, because of react router's behaviour, this no longer happens now that we use the browser's History API directly

Signed-off-by: Hidde de Vries <[email protected]>
(as its logic depends on a window to exist)

Signed-off-by: Hidde de Vries <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant