Skip to content

Commit

Permalink
Fixed bug: anchors not updating when usinig option sectionSelector a…
Browse files Browse the repository at this point in the history
  • Loading branch information
alvarotrigo committed Jul 10, 2020
1 parent 904ece7 commit 208dd86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fullpage.js
Original file line number Diff line number Diff line change
Expand Up @@ -853,7 +853,7 @@
if(!options.anchors.length){
var anchorsAttribute = '[data-anchor]';
var anchors = $(options.sectionSelector.split(',').join(anchorsAttribute + ',') + anchorsAttribute, container);
if(anchors.length && anchors.length === $(SECTION_SEL).length){
if(anchors.length && anchors.length === $(options.sectionSelector, container).length){
g_initialAnchorsInDom = true;
anchors.forEach(function(item){
options.anchors.push(item.getAttribute('data-anchor').toString());
Expand Down

0 comments on commit 208dd86

Please sign in to comment.