rafgraph / react-router-hash-link

Hash link scroll functionality for React Router
https://react-router-hash-link.rafgraph.dev
MIT License
732 stars 62 forks source link

Screen reader issue when no hash in URL #104

Open TristanLavalou opened 1 year ago

TristanLavalou commented 1 year ago

Hello,

I'm facing an accessibility issue. When using Chrome's Screen Reader ChromeVox, a link is read twice when it's pointing on an URL which doesn't have an hash / anchor in it.

For example, using your online demo, if you're moving to "Section One" using the keyboard, entering it, then entering "Home", the link will be read twice and the screen reader focus will stay on it, even if the link was removed of the DOM.