jQuery 4.0.0 compatibility
jQuery 4.0.0 compatibility
Mwhite007
Posts: 8Questions: 3Answers: 0
in DataTables 2
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
Fully compatible - unit tests passing
.
Here is a trivial example.
Allan
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
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.jsis 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
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
orderNumbersonundefined(theDataTableobject is undefined).Allan
i upgraded bootstrap from 3 to 4 last year... i guess i have to upgrade to 5 now?
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