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 #312

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

Bootstrap scrollspy support #312

gladion136 opened this issue Nov 12, 2023 · 4 comments
Labels
A-deployment Area: deployment C-bug Category: bug tribble-reported This issue was reported through Tribble.

Comments

@gladion136
Copy link
Contributor

gladion136 commented Nov 12, 2023

This issue is reporting a bug in the code of Perseus. Details of the scope will be available in issue labels.
The author described their issue as follows:

Bootstrap Scrollspy don't works with perseus. 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.

The steps to reproduce this issue are as follows:

  1. Import Bootstrap css inside header
  2. Create Template 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.

A minimum reproducible example is available at https://github.com/gladion136/perseus-bootstrap-template/tree/feature/first-draft.

  • Hydration-related: false
  • The author is willing to attempt a fix: false
Tribble internal data

dHJpYmJsZS1yZXBvcnRlZCxDLWJ1ZyxBLWRlcGxveW1lbnQ=

@github-actions github-actions bot added A-deployment Area: deployment C-bug Category: bug tribble-reported This issue was reported through Tribble. labels Nov 12, 2023
@arctic-hen7
Copy link
Member

Hmm, this looks like it might be a hydration issue, and as such probably a Sycamore bug. Have you tried without hydration (just remove the hydrate flag in your Cargo.toml) or with vanilla Sycamore?

@gladion136
Copy link
Contributor Author

The error also occurs without the hydrate feature. I have uploaded my source code here Github-src

@arctic-hen7
Copy link
Member

Okay, interesting. Could you try the same markup through Sycamore? I'm not seeing how this could be a Perseus bug, I reckon its probably something with Sycamore (unless Perseus' page loading is disrupting something...).

@gladion136
Copy link
Contributor Author

gladion136 commented Nov 14, 2023

You're right. The bug also occurs with a sycamore project Example Project. I created an Issue there: sycamore-rs/sycamore#646

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-deployment Area: deployment C-bug Category: bug tribble-reported This issue was reported through Tribble.
Projects
None yet
Development

No branches or pull requests

2 participants