Open vem opened 9 years ago
Solution provided by Reddit user IAMAnuttysquirrel:
Bad luck, the vanilla JS version of the library has a bug too. But we can work around it. moveTo() tries to remove .active from the .onepage-pagination li a jquery.onepage-scroll.js:473 But since you initialised onePageScroll({pagination: false}) it actually hasn't created the pagination dom elements. Thus, trying to change the className of a non-existing element... Uncaught TypeError. The onePageScroll developer has forgotten to surround this piece of code with:
if(settings.pagination == true) { _removeClass(.....); _addClass(.....); }
tips: Cannot read property 'className' of null