jQuery.event.props is undefined
There is an issue with jquery version 3 or above as mentioned in the jquery.event.move
github issue page:
jQuery 3.0.0 breaks jQuery.event.props
usage
This happened since in jQuery 3.0.0 upgrade jQuery.event.props
and jQuery.event.fixHooks
are removed. More details here:
Breaking change: jQuery.event.props
and jQuery.event.fixHooks
removed
jQuery's event handling performance increased thanks to a reorganization of event property management. The main improvement is that jQuery now only calculates or copies a property on the first access, rather than calculating and copying them up front. This is a really big win with properties that may force layout that the event handler may not even need. The most common use we know of was to add properties for pointer events, which is no longer necessary because those events are supported already in jQuery 3.0. The jQuery Migrate plugin provides support for these properties if you still need them. The related but undocumented
mouseHooks
andkeyHooks
lists were removed as well. The team is interested in understanding other use cases before defining new APIs, so feel free to open a ticket.
The github issue is still open and no solution has been provided yet as of 08.01.2016. As an alternative fix you can either:-
- Use the jQuery Migrate plugin, which provides support for these properties.
- Or, use any jQuery version below 3.0.0