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

activeStyle does not work #41

Closed mustafamamun closed 3 years ago

mustafamamun commented 5 years ago

activeStyle property for the hash routing does not work. I have reproduced it in the following url https://codesandbox.io/embed/w0op0r5ov7 . In code sand box it does not also scroll. I have got the scrolling working but the active link is not taking the style given.

rafgraph commented 5 years ago

This is an issue with React Router, it seems like the fix is merged in master but not released yet. See https://github.com/ReactTraining/react-router/issues/6877

rafgraph commented 3 years ago

This should be fixed in v2.2.0