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 scroll on pages with ChartList #4560

Merged
merged 2 commits into from
Feb 14, 2025
Merged

Fix scroll on pages with ChartList #4560

merged 2 commits into from
Feb 14, 2025

Conversation

rakyi
Copy link
Contributor

@rakyi rakyi commented Feb 14, 2025

Also fixes query params handling. See Slack discussion.

When the search input is autofocused and not in the view, the browser
scrolls to it automatically, which we don't want. We can still autofocus
it on the main chart index page, since it loads with the search input in
view.
We appended just a single ? when the search was empty.
Copy link
Member

@sophiamersmann sophiamersmann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@owidbot
Copy link
Contributor

owidbot commented Feb 14, 2025

Quick links (staging server):

Site Dev Site Preview Admin Wizard Docs

Login: ssh owid@staging-site-fix-admin-scroll

SVG tester:

Number of differences (default views): 0 ✅
Number of differences (all views): 0 ✅

Edited: 2025-02-14 10:18:49 UTC
Execution time: 1.20 seconds

@rakyi rakyi merged commit e2bc022 into master Feb 14, 2025
36 checks passed
@rakyi rakyi deleted the fix-admin-scroll branch February 14, 2025 10:26
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.

3 participants