slatedocs / slate

Beautiful static documentation for your API
https://slatedocs.github.io/slate
Apache License 2.0
36.01k stars 108 forks source link

Incorrect Section Highlighted in TOC When Near End Of Page #1747

Open patrickdemers6 opened 1 year ago

patrickdemers6 commented 1 year ago

Bug Description When navigating using the TOC and selecting sections near the end of the page, the wrong section is highlighted.

Screenshots

In the video, I have a slightly modified version of the default example. I have shortened the errors section. You will notice clicking "Delete a Specific Kitten" causes the "Errors" section to be highlighted.

https://github.com/slatedocs/slate/assets/12687723/f034a188-71f8-48c4-98ec-e20097f62d3a

Browser (please complete the following information):

Last upstream Slate commit (run git log --author="\(Robert Lord\)\|\(Matthew Peveler\)\|\(Mike Ralphson\)" | head -n 1): fc2e92b