jQuery 4.0.0 compatibility

jQuery 4.0.0 compatibility

Mwhite007Mwhite007 Posts: 8Questions: 3Answers: 0

I use DataTables 2.3.6. what is the state of jQuery 4.0.0 compatibility with DataTables?

This question has accepted answers - jump to:

Answers

  • allanallan Posts: 65,588Questions: 1Answers: 10,904 Site admin
    Answer ✓

    Fully compatible - unit tests passing :).

    Here is a trivial example.

    Allan

  • Mwhite007Mwhite007 Posts: 8Questions: 3Answers: 0

    when i substitute jQuery 4.0.0 i get an error that bootstrap 4 doesn't accept it and the orderNumbers function for multi-column sorting doesn't like it either

  • allanallan Posts: 65,588Questions: 1Answers: 10,904 Site admin
    Answer ✓

    The first one is a Bootstrap 4 error. There is a bug on the Bootstrap issues list on the topic. It sounds like it isn't something they are going to fix I'm afraid.

    The reason that the error is coming from datatables.min.js is that the Bootstrap 4 JS is bundled into it for the download configuration you used.

    Regarding the orderNumbers plugin, I'll look into why that isn't working. I'm surprised that doesn't work as it doesn't do anything fancy with jQuery.

    Allan

  • allanallan Posts: 65,588Questions: 1Answers: 10,904 Site admin

    Actually - thinking about it at little more, I strongly suspect the first error is causing the second one, since it would break the JS thread before DataTables is defined, hence the error about not being able to set orderNumbers on undefined (the DataTable object is undefined).

    Allan

  • Mwhite007Mwhite007 Posts: 8Questions: 3Answers: 0

    i upgraded bootstrap from 3 to 4 last year... i guess i have to upgrade to 5 now?

  • allanallan Posts: 65,588Questions: 1Answers: 10,904 Site admin

    If you want to use jQuery 4 with Bootstrap, then yes, I'm afraid that does appear to be the case. That is not something that I have any control over and is a decision by the Bootstrap folks.

    The other option would be to just stay on jQuery 3.x.

    Allan

Sign In or Register to comment.