S
SolidJS•2y ago
lumenian

Scrolling to id is not consistent

Clicking a <A href="/#some_id"> link does nothing if the current route already matches the link completely. Is there a way to fix this behavior, so clicking the link on the same page repeatedly would scroll the element into view?
4 Replies
foolswisdom
foolswisdom•2y ago
I think this is standard browser behavior. And also not sure if there's anything that can be done about it 🤔. Unless you see that because with a standard <a> tag is different
lumenian
lumenianOP•2y ago
But the regular <a> is different, it will scroll to the element repeatedly as expected. Just tested it in Chrome and Firefox.
lumenian
lumenianOP•2y ago
GitHub
Click on tag does not reliably scroll to section · Issue #229 · so...
Describe the bug I set up a small website, that is supposed to work like a single page application. My main nav consists of 4 links of which the first is an Tag and the other three are regular with...
foolswisdom
foolswisdom•2y ago
Ah, interesting. I didn't realize that worked
Want results from more Discord servers?
Add your server