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
Left navigation auto scrolling and link changing on scrolling is not working #1235
Comments
Hi, this is an issue with the scroll container. Right now Redoc supports only top-level scroll and won't work if you insert it into a scrollable container. As a workaround, try to remove any scrollable wrapper around Redoc. Otherwise, wait for the issue to be fixed. |
@annakulaachyuth in case it helps, I had the same problem and tracked it down to this property on HTML in the CSS: scroll-behavior: smooth; |
This partially solves the problem. I have a fairly simple layout with redoc in a nested div and un-setting scroll-behavior does make the UI jump to the correct destination on click but the left menu scrolls away. The back button on the browser does work fine but it is not ideal. Also, it is not possible to open up specific tags. You just get taken to the top of the listings for a particular tag. I can replicate this rather easily if needed. Unfortunately, I am more of a backend Scala type and not much help with react/html.css. |
Also |
As a work around set the css overflow-y: scroll; property on the same container (i.e div) you have the redoc container in.. |
Issue persists in the current main branch as well. |
Hi, |
Hi
We found a bug while integrating ReDoc into our application. While scrolling the left navigation bar is not scrolling or auto collapsed or even highlighted and even the link in the navigation bar is not changing. Please check the video
Our application is a SPA built using react and the redoc version we are using is 2.0.0-rc.26.
The only warning we could see in the console is
The text was updated successfully, but these errors were encountered: