Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nested structure not supported #14

Open
nifanic opened this issue Jan 30, 2023 · 0 comments
Open

Nested structure not supported #14

nifanic opened this issue Jan 30, 2023 · 0 comments

Comments

@nifanic
Copy link

nifanic commented Jan 30, 2023

Nice component, but doesn't seem supporting nested HTML structure, like—

<chapter>
  <header id="section1">Chapter 1</header>
  <main>
    <section>
      <header id="subheaderA">Subheader A</header>
    </section>
    <section>
      <header id="subheaderB">Subheader B</header>
    </section>
  </main>
</chapter>

In this example, if we are on Subheader A, react-ui-scrollspy will still highlight Chapter 1 as active.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant