pettiboy / react-ui-scrollspy

Customizable Scroll Spy component for react which is Simple, Easy To Use and Lightweight with callback, typescript, auto-update URL hash and throttle support among others.

Home Page:https://pettiboy.github.io/react-ui-scrollspy/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Option to disable url appending hash

angelinekwan opened this issue · comments

Could you advice how to disable the page url from appending active section as hash?
The reason is because the page has other section (hero) that is not part of the scrollspy <ScrollSpy> .
This cause the page when load to scroll directly to the 1st ScrollSpy element and skipping the rest of the page content.

<hero /> -> height 90vh
<nav />
<ScrollSpy>
<div>
<div>
<ScrollSpy>

Thanks in advance.

add this attribute useDataAttribute=""

Had a similar problem, this should help #10