Home > Blockchain >  how to Using different versions of jQuery and jQuery UI together
how to Using different versions of jQuery and jQuery UI together

Time:07-04

I have worked the jQuery and jQuery UI with different version, I just using jQuery UI drag the element in mobile view that normally works fine but they have conflict issue

 _jQuery version ->3.6.0_ `<script src="../resources/vendors/jquery/jquery-3.6.0.min.js"></script>`
_jQuery  UI version ->1.13.1_  `<script src="../resources/vendors/jquery/jquery_UI/jquery-ui.min.js"></script>`

they have conflict the jquery.min.js

error:

 [Intervention] Ignored attempt to cancel a touchmove event with cancelable=false, for example, because scrolling is in progress and cannot be interrupted.

 [Intervention] Ignored attempt to cancel a touchstart event with cancelable=false, for example, because scrolling is in progress and cannot be interrupted.
 
 [Intervention] Ignored attempt to cancel a touchend event with cancelable=false, for example, because scrolling is in progress and cannot be interrupted.
 

How to Using different versions of jQuery and jQuery UI together?

CodePudding user response:

Although this is not idea, it is possible. Look into jQuery.noConflict() as described here: https://api.jquery.com/jquery.noconflict/

CodePudding user response:

I've fix this error, during update touch-punch version

https://github.com/RWAP/jquery-ui-touch-punch

  • Related