scalar: Error when scrolling inside Next.js

Expected Behavior

Integrate scalar with Next.js with veaury Things should work fine when scrolling.

Actual Behavior

After click on any specific link and then scrolling, a bunch of errors throw in the console Screenshot 2024-01-19 at 8 47 35 PM

Reproduction steps

1. Go to Api Document page (setup inside Next.js with veaury)
2. Click on any link in the sidebar
3. Scroll up / down
4. See error

Link to site / OpenAPI Spec

No response

Version

1.13.10

What browsers are you seeing the problem on?

Chrome, Safari (macOS), Firefox

About this issue

  • Original URL
  • State: closed
  • Created 5 months ago
  • Comments: 15 (8 by maintainers)

Commits related to this issue

Most upvoted comments

hey @ginkcode I got a PR up if you want to check it out. You can clone the repo and test out the example if you like

https://github.com/scalar/scalar/pull/854

😄

Cool @amritk I’ve tested with that branch and it seems the exception is gone.