Skip to content

Commit

Permalink
fix: call NavScroll on page ready
Browse files Browse the repository at this point in the history
  • Loading branch information
PiemP committed Aug 9, 2023
1 parent 5d86152 commit 86d0bdc
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/js/plugins/navscroll.js
Original file line number Diff line number Diff line change
Expand Up @@ -244,11 +244,10 @@ class NavScroll extends BaseComponent {
* ------------------------------------------------------------------------
*/

onDocumentScroll(() => {
const navs = SelectorEngine.find(SELECTOR_NAVSCROLL)
navs.map((nav) => {
NavScroll.getOrCreateInstance(nav)
})
const navs = SelectorEngine.find(SELECTOR_NAVSCROLL)
navs.map((nav) => {
NavScroll.getOrCreateInstance(nav)
})


export default NavScroll

0 comments on commit 86d0bdc

Please sign in to comment.