Skip to content

Fix in-page button jumps (volunteer sign-up, ballot) - #111

Merged
xrendan merged 2 commits into
mainfrom
fix/volunteer-signup-anchor
Oct 16, 2026
Merged

xrendan merged 2 commits into
mainfrom
fix/volunteer-signup-anchor

Conversation

@xrendan

@xrendan xrendan commented Oct 16, 2026 •

Copy link
Copy Markdown
Member

Button as="link" rendered a next/link, which treats a click on a hash that's already in the URL as a no-op navigation. The first click on "Sign up to volunteer" worked. After that (for example, after scrolling back up), or on a page opened at #signup, clicks updated the URL but didn't scroll. Button now renders a plain <a> for #hash hrefs and lets the browser handle the jump. The same fix covers the #ballot button on when-is-the-election.

Reproduced on production and verified locally: repeated clicks, and arriving at #signup, now scroll every time.

(An earlier commit here also added a Formstack render check. It has been dropped because the volunteer pages are moving off Formstack.)

🤖 Generated with Claude Code

… nothing

Button links to a #hash now render a plain <a>: next/link treated a click
on a hash already in the URL as a no-op, so "Sign up to volunteer" didn't
scroll on a second click or on a page opened at #signup. Same fix covers
the #ballot button on when-is-the-election.

FormstackForm now waits for Formstack's <form> to actually appear before
calling the embed ready, and shows the open-in-a-new-tab fallback if it
hasn't within 15 seconds, instead of a blank space. Failures are recorded
in PostHog as formstack_form_failed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Your trial has ended. Reactivate Greptile to resume code reviews.

The volunteer pages are moving off Formstack, so it isn't needed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@xrendan xrendan changed the title Fix volunteer sign-up button jump and blank Formstack embeds Fix in-page button jumps (volunteer sign-up, ballot) Oct 16, 2026

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Your trial has ended. Reactivate Greptile to resume code reviews.

@xrendan
xrendan merged commit 6a83fc1 into main Oct 16, 2026
1 check passed
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