In the ecommerce template there's an error when using jquery 3x:

Related to #10886.
No, this is not directly related.
jquery-3.2.1.js:9823 Uncaught TypeError: url.indexOf is not a function
at jQuery.fn.init.jQuery.fn.load (jquery-3.2.1.js:9823)
at foundation.js:1470
at foundation.js:1631
/**
* Fires once after all other scripts have loaded
* @function
* @private
*/
$(window).load(function(){ <--- caused by this
https://stackoverflow.com/a/40252711/753676
This was already fixed in 6 and also in recent PRs: https://github.com/zurb/foundation-sites/pull/10729
Foundation 6.0.0: https://codepen.io/DanielRuf/full/gvLoJr/
Foundation 6.4.3: https://codepen.io/DanielRuf/pen/BYQYBp
please help me with this issue
Hi @rainzetroc, wich version of Foundation Sites do you use and do you use it with npm / yarn and which file from it (dist / src, minified or unminified)?
FYI. If you are using Foundation v5.5.3, then you need jQuery v2.1.4, and not a bit newer!
@halfnibble why?
Hi @rainzetroc, wich version of Foundation Sites do you use and do you use it with npm / yarn and which file from it (dist / src, minified or unminified)?
I am using jquery 3.3.1 and attached mcustomscroolbar.js file code and getting this issue. Please share any suggestion, you have. Thanks.
I am using jquery 3.3.1 and attached mcustomscroolbar.js file code and getting this issue. Please share any suggestion, you have. Thanks.
Hi, this is probably not caused by Foundation Sites in your case. Also please do not post so long replies.
Most helpful comment
No, this is not directly related.