Skip to content
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

Bootstrap scrollspy support #646

Closed
gladion136 opened this issue Nov 14, 2023 · 4 comments
Closed

Bootstrap scrollspy support #646

gladion136 opened this issue Nov 14, 2023 · 4 comments
Labels
C-bug Category: bug, something isn't working

Comments

@gladion136
Copy link

Describe the bug
Bootstrap Scrollspy don't works with sycamore. The links and design works but on scrolling the current section will not be selected. Inside a raw index.html it works with the same steps.

To Reproduce
Steps to reproduce the behavior:

  1. Import Bootstrap css inside header (index.html)
  2. Create a with Scrollspy from the examples: https://getbootstrap.com/docs/5.2/components/scrollspy/
  3. Import jquery and bootstrap js at the bottom of the body.

Here is a example project with this bug: https://github.com/gladion136/sycamore-bootstrap-template/tree/feat/first-draft

Expected behavior
On scrolling along the page the current section should be selected inside the menu.

Environment

  • Sycamore: 0.8
  • Browser: Firefox
  • OS: Linux Mint
@lukechu10 lukechu10 added the C-bug Category: bug, something isn't working label Nov 14, 2023
@lukechu10
Copy link
Collaborator

Seems to be working for me?

Bootstrap.inside.Sycamore.and.4.more.pages.-.Personal.-.Microsoft_.Edge.2023-11-14.10-22-49.mp4

@lukechu10
Copy link
Collaborator

Oh, it doesn't work on Firefox but works in chromium based browsers.
Seems like it's a known issue with Bootstrap: twbs/bootstrap#6484

In any case, this isn't a bug with Sycamore since all we are doing is just rendering markup.

@lukechu10 lukechu10 closed this as not planned Won't fix, can't repro, duplicate, stale Nov 14, 2023
@gladion136
Copy link
Author

Hmm.. it doesn't works for me inside Firefox and Chromium on Linux Mint with sycamore and perseus.. When I create just a raw index.html with Bootstrap and a scrollspy it works well.. Do you have any ideas why?

@lukechu10
Copy link
Collaborator

Are you saying it doesn't work on Chrome either? If you open up devtools and compare the markup between the two, is there any difference? Hard to believe this issue has anything to do with Sycamore since we are just rendering standard HTML and Bootstrap doesn't make any requirement as to which framework we use.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: bug, something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants