-
Notifications
You must be signed in to change notification settings - Fork 7.2k
Closed
Labels
Description
Description
Using anchors
with a whitespace will generate an error and break fullPage.js
anchors: ['demo here', 'section 2', 'section3'],
Also takes place when using data-anchor
.
A simple solution is to automatically replace those for a dash: -
.
This will avoid simple errors like this one.
Link to isolated reproduction with no external CSS / JS
https://codepen.io/alvarotrigo/pen/WNqVbYW
Steps to reproduce it
- Access https://codepen.io/alvarotrigo/pen/WNqVbYW
- Try to scroll down
- Open the JS console and see the error
Versions
All. Latest fullPage.js <= 4.0.29