foundation-sites: Problems with jQuery 3
What happend? Please update the deprecated method calls.
e.g.
sample.load(fn()) to sample.on('load', fn())
How can we reproduce this bug?
- Use Foundation 5 in a project via NodeJs –> dependency in package.json: jQuery >= 2.x.x ----> jQuery 3.0.0 is installed (breaking changes)
What did you expect to happen? Foundation should not throw any error. Please update the code so that it don’t use deprecated methods.
What happened instead? Foundation throws error.
Thanks
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Reactions: 13
- Comments: 33 (11 by maintainers)
@Baedda It should be. I just update the release notes highlighting this for the PR in question that fixed it.
We decided not to change the default to jQuery 3 until the minor release, but projects using 3 should now work.
@kball I have a Foundation 5 project that’s very hard to move to Foundation 6 - and latest jQuery 2 (v2.2.4) has security issues, so would like Foundation 5 to be compatible with jQuery 3.
You basically just have to replace:
$(window).load(function() { ... });with$(window).on('load', function() { ... });Could you release af version of Foundation 5 with the fix, please?
This is not fixed.
$(window).on("load", function (e) {}) currently does not work with jQuery 3.2.1@h0r0man you are using 6.2.3 in your pen. Changing it to 6.2.4 fixes the errors.
After upgrading my test project to latest jquery
and FS 6.3.0
verifying
updating the project still warns about “Code incompatibilities” re: jquery 3 “vs” FS6
What’s the current ‘official’ stance on jQuery? If it’s ‘supported’, what about these errors/warnings? If it’s NOT supported, what’s the target version of FS to get full support?
This is fixed in 6.2.4, which will be released TOMORROW. 😃
should be fixed by https://github.com/zurb/foundation-sites/pull/8923
I am running into the same problem, does anyone from foundation team know the best way to solve this problem?
Same thing happened to me. Update would be very nice 😃