We have upgraded a template to use jQuery 3.1.1 (latest) and are now seeing this error in the console:TypeError: $event.fixHooks is undefined
ewp12.js (line 4189, col 2)Was a fix posted for using jQuery 3.x? Older versions are not supported any more.Thanks,
Chris
Please note that PHPMaker v2017.0.6 currently uses the jQuery version 1.12.4, and not version 3.x.x. Not sure whether you can use both version for PHPMaker and will not cause collision one to each other.
You can try jQuery Migrate Plugin:
https://github.com/jquery/jquery-migrate/#readme
jQuery Migrate will just tell you what to fix, fixhooks being one of the removed features in newer jQuery versions. Hopefully v14 will have jQuery 3 support.For the time being I’ve reverted our template to jQuery 1 but this is not optimal, as jQuery 3 is much faster (including a new animations API, for loops and XSS protection).
what is the alternative for event.fixHooks in jQuery 3.0 and above ?
Are you using a very old version? There is no need for $event.fixHooks any more.