TypeError: $ .event.props is undefined

1

I have a slider like this: link

In my case it is displaying the following error in the console when I click the drag / drop button:

TypeError: $.event.props is undefined[Learn More] jquery.ui.widget.js:20:361
_trigger http://localhost/2018/js/jquery.ui.widget.js:20:361
_start http://localhost/2018/js/jquery.ui.slider.js:58:8
_mouseCapture http://localhost/2018/js/jquery.ui.slider.js:45:9
_mouseDown http://localhost/2018/js/jquery.ui.mouse.js:4:275
_mouseInit/< http://localhost/2018/js/jquery.ui.mouse.js:2:59
dispatch http://localhost/2018/js/jquery-3.1.1.min.js:1626:181
add/q.handle http://localhost/2018/js/jquery-3.1.1.min.js:1588:86

HTML: link

jquery.ui.widget.js : link
jquery.ui.mouse .js : link
jquery.ui.slider.js : link
pagina.js : link a>

Any tips on what might be happening?

    
asked by anonymous 30.08.2018 / 19:56

1 answer

2

this page on the official site , the property jQuery.event.props has been removed since version 3.0.0 of jQuery:

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 already supported in jQuery 3.0. The jQuery Migrate   plugin provides support for these properties if you still need them.

So you have 2 alternatives:

  • Use an additional plugin called jQuery Migrate , which supports the property, or
  • Use a pre-3.0 version of jQuery.
  •   

    Note: The page you mentioned uses jQuery v2.1.4, which can be checked this link .

    Source: SOen

        
    30.08.2018 / 20:32