UI: ScrollToTop may miss same-page anchor clicks on nested children #198

Open
opened 2026-05-29 16:45:56 -05:00 by null · 0 comments
Owner

Severity: Minor

Description: Same-page anchor navigation (#contact-form) is intercepted via click handler, but only catches direct anchor clicks. Clicks on nested children (icons, spans inside links) won't trigger it.

File: src/components/ScrollToTop.jsx

Fix direction: Use event delegation on nearest container or rely on React Router scroll restoration.

**Severity:** Minor **Description:** Same-page anchor navigation (`#contact-form`) is intercepted via click handler, but only catches direct anchor clicks. Clicks on nested children (icons, spans inside links) won't trigger it. **File:** `src/components/ScrollToTop.jsx` **Fix direction:** Use event delegation on nearest container or rely on React Router scroll restoration.
null added the
bug
ui
labels 2026-05-29 16:45:56 -05:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: null/Queue-North-Website#198
No description provided.