Replies: 1 comment 2 replies
-
var scrollSpy = new bootstrap.ScrollSpy(document.body)
var dataSpyList = [].slice.call(
document.querySelectorAll('[data-spy="scroll"]')
)
dataSpyList.forEach(function (dataSpyEl) {
bootstrap.ScrollSpy.getInstance(dataSpyEl).refresh()
}) |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, I found small problem in scrollspy Bootstrap 5
https://v5.getbootstrap.com/docs/5.0/components/scrollspy/#refresh
Uncaught TypeError: Cannot read property 'refresh' of null
demo : https://codepen.io/aribudin/pen/XWKNpZg
Scrollspy nav link not refresh after sreen resized
How to test ?
Scrollspy nav link still in "progress" menu
Have any idea ?
Beta Was this translation helpful? Give feedback.
All reactions