-
-
Notifications
You must be signed in to change notification settings - Fork 78.9k
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
Remaining to do after the jQuery removal #28342
Comments
I am trying to help and port "Replace https://codepen.io/Johann-S/pen/djJYPb or add a codepen with vanilla JS" item This is what i got until now: Too bad I can't test properly, because |
Hi @midzer, thank you for trying to tackle that, but you should wait for our first alpha release |
Since the alpha has been released - some updated codepen without the jQuery dependency: https://codepen.io/-alpa-/pen/PoZWzNM I used querySelectorAll in that case, to keep the logic from the corresponding jQuery example - although I'm not sure if that's adding some confusion. Also to keep things DRY I used a wrapper function for document.querySelector that is named $ - that is what Chrome is doing by default in case $ is undefined - but might be a bit confusing too. Anyways I guess it'd be better if you add this to your codepen, to keep things streamlined. Feel free to change things as you see fit. |
@Johann-S what's the status of this? Only 2 TODO are left :) |
@alpadev can you submit a PR with your CodePen link? |
Sure, if you agree with the updates. |
To get this list done. What would be the required information for the "Maybe explain when an element is considered visible in the scrollspy callout" todo? Like an element is considered visible |
@alpadev it's been a while but IIRC the issue was about https://getbootstrap.com/docs/4.5/components/scrollspy/#non-visible-target-elements-ignored:
|
Oh I see. I had a look into the code and in theory one could hide it with The logic in the code checks for both So there's nothing I can help here with I guess? |
I don't recall TBH, I know I removed the docs part so that we move forward back then, but I don't know if the statement applies to v5 (it probably does, though). |
So, only the scrollspy callout is left 🙂 Now, I'm not sure how to proceed with this, but if we can put it back quickly explaining when an element might not be visible and that scrollspy will ignore it, I think that would be the best solution. PRs welcome! |
@XhmikosR uhm there is some info about the visibility: https://github.com/twbs/bootstrap/blob/main/site/content/docs/5.0/components/scrollspy.md#non-visible-target-elements-ignored |
Oh, true. I guess we can finally close this issue. Thanks everyone for the help! |
$()
(Remove jquery from our docs #28768)$()
(Remove jquery from our docs #28768)jquery
(not case sensitive) and$(
DOMContentLoaded
anymore in tests and docs. Remove DOMContentLoaded. #28337If you’re building our JavaScript from source, it requires util.js.
not needed anymore (continuing to remove jquery references to our doc #28779)The text was updated successfully, but these errors were encountered: