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 #1828

Merged
merged 2 commits into from
Dec 17, 2024
Merged

Fix focus issue in component filter #1828

merged 2 commits into from
Dec 17, 2024

Conversation

hidde
Copy link
Member

@hidde hidde commented Dec 17, 2024

(turns out… losing focus is default behavour of history.push() in React Router, but not of history.replace(); this seems coincidental, this change also means that there is no history kept of the different filter settings, I think that's ok)


Dit fixt twee dingen:

  • focus werd bij veranderen filter terugverplaatst naar body, dat gebeurt nu niet meer
  • filters gaan nu automatisch open als je in de URL filters had staan (bv als iemand het met je deelde)

(losing focus is default behavour of history.push() in React Router, but not of history.replace())

Signed-off-by: Hidde de Vries <[email protected]>
Copy link

vercel bot commented Dec 17, 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 2:40pm

@hidde hidde changed the title fix: change history without losing focus Fix focus issue in component filter Dec 17, 2024
@Robbert
Copy link
Member

Robbert commented Dec 17, 2024

I LOVE IT! Zo simpel kan het zijn :D

@Robbert Robbert merged commit 1099748 into main Dec 17, 2024
7 checks passed
@Robbert Robbert deleted the docs/fix-focus-issue branch December 17, 2024 15:29
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.

2 participants