You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hits this line if (validateSelector(this.settings.offset, this.container)) {
Which calls validateSelector(500, undefined).
varvalidateSelector=functionvalidateSelector(selector){varcontainer=arguments.length>1&&arguments[1]!==undefined ? arguments[1] : d;varvalid=true;// Check if the target is a valid selector inside the scrollToSmooth containertry{if(typeofselector==='string'){_$(selector,container);}elseif(isNodeOrElement(selector)&&container.contains(selector)){selector;}}catch(e){valid=false;}returnvalid;};
which results in nothing being thrown, so 500 is considered a "valid selector", which means offset gets changed to 0.
The text was updated successfully, but these errors were encountered:
Code gets to this point:
Hits this line
if (validateSelector(this.settings.offset, this.container)) {
Which calls
validateSelector(500, undefined)
.which results in nothing being thrown, so
500
is considered a "valid selector", which means offset gets changed to0
.The text was updated successfully, but these errors were encountered: