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

Active class not working when section content is dynamic

shmuel-web opened this issue · comments

Active class not working when section content is dynamic

<ScrollSpy offsetBottom={400} scrollThrottle={100} parentScrollContainerRef={this.props.scrollContainer}>
        <section id="system-status">
          {mainStore.proViewShow("system-status") && <div>
              <h2>System Status</h2>
              <Alerts/>
          </div>}
        </section>
</ScrollSpy>

How did you resolve this case sir?