Skip to content

Fix #24: keep the anchor section in view after the events list loads - #25

Open
tanujb03 wants to merge 1 commit into
techcsispit:mainfrom
tanujb03:fix/24-keep-section-in-view
Open

tanujb03 wants to merge 1 commit into
techcsispit:mainfrom
tanujb03:fix/24-keep-section-in-view

Conversation

@tanujb03

Copy link
Copy Markdown

Fixes #24

Summary:

  • preserve the target anchor after renderEvents() fills the events list
  • reapply the current fragment when the browser had already scrolled to that section
  • keeps /#faq and /#contact visible while the page is still loading or while events.json arrives

Validation:

  • Reproduced the issue on fresh upstream/main with the README flow (python -m http.server, deep links in headless Edge)
  • Verified the fix with the repo probe against the patched page: FAQ remains visible after load and the scroll offset is restored instead of being pushed down by the event cards

Authored by Tanuj Bhide (tanujb03).

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.

Opening the page at /#faq or /#contact (or clicking FAQ while events load) does not land on that section: the events list is added above it afterwards

1 participant