-
-
Notifications
You must be signed in to change notification settings - Fork 107
Description
Before submitting...
- I have searched for duplicate or closed issues.
- I have read the CONTRIBUTING document and my issue is following the guidelines.
- I have read the template completely before filling it in.
Context
If the user scrolls the page outside of the scrollspy
elements, there will be no active element in the section table-of-contents
. In most cases, this is fine. However, if it's necessary to keep the last active element visible in the section table-of-contents
, the component doesn't provide a way to do so.
Current Behavior
Let's imagine a blog web page with 2 sections:
- main section
- introduction
- body
- summary
- comments
Main section is wrapped in scrollspy component.
When the user scrolls down from the main section through comments, there will be no active element in section table-of-contents
.
Expected behavior
To introduce a flag keepLastActiveElementVisible
(or any other name, TBD) that allows keeping the element visible inside section table-of-contents
if scrollbar is outside the scrollspy
elements.
Possible Solutions or Causes
To introduce that flag, if the proposal is approved then I can implement it!
Your Environment
- Version used:
- Browser Name and version:
- Operating System and version (desktop or mobile):
- Additional information you want to tell us: