Skip to content
This repository has been archived by the owner on Aug 7, 2021. It is now read-only.

Scrollspy issue when using overflow hidden and flexbox #259

Open
chrisbag opened this issue Jul 17, 2021 · 0 comments
Open

Scrollspy issue when using overflow hidden and flexbox #259

chrisbag opened this issue Jul 17, 2021 · 0 comments

Comments

@chrisbag
Copy link

Hello,
First of all, thanks for the awesome package.

I have been struggling for the last day trying to make it work in my use case.
I basically have an app with the following components :

  • a top bar.
  • Under the topbar, I have a flexbox with on the left the content (which is scrollable) and on the right the Scrollspy element which must also be scrollable as it might contain many sections

The anchor links work fine but the scrollspy element is unable to locate the correct sections of the content.

Here is the link of the codesandbox reproducing the issue https://codesandbox.io/s/react-scrollspy-bug-m4708?file=/src/styles.css

Would you have any idea of what might be causing the issue ? any workarounds possible ? (the package works fine when I don't use flexbox and hidden overflows

Thanks a lot for your help :)

Chris

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

No branches or pull requests

1 participant