≡

Editor changed behavior in 3.1.1 when acitvated with on click trigger

Editor changed behavior in 3.1.1 when acitvated with on click trigger

BjornHaBjornHa Posts: 85Questions: 18Answers: 0

Test case:
https://live.datatables.net/hadasufu/1/edit

I have some editors being triggered with a sub collection of data activated by click on specific column in a DataTable.
The event fires the editor and sets filed data.
In the editor definition I have not used table or dataSrc setting as none seemed to be correct for the case. This worked in 2.3.4,
In 3.1.4, I "need" to set an empty table, i.e.

table: ''

to get it working. As with the previous checkBox error, I probably have missed something somewhere.

Error diplayed

"TypeError: Cannot use 'in' operator to search for 'current' in null
    at l (https://cdn.datatables.net/v/bs5/jszip-3.10.1/dt-3.1.4/b-4.1.2/cv-1.1.2/date-2.1.2/e-3.1.1/fc-6.1.1/kt-3.1.1/rg-2.1.1/sc-3.1.1/sb-2.1.1/sp-3.0.0/sl-4.1.1/datatables.min.js:65:538)
    at HTMLDocument.<anonymous> (https://cdn.datatables.net/v/bs5/jszip-3.10.1/dt-3.1.4/b-4.1.2/cv-1.1.2/date-2.1.2/e-3.1.1/fc-6.1.1/kt-3.1.1/rg-2.1.1/sc-3.1.1/sb-2.1.1/sp-3.0.0/sl-4.1.1/datatables.min.js:65:88678)
    at HTMLDocument.dispatch (https://testwpadmin-cdn.pro4u.se/wp-includes/js/jquery/jquery.min.js?ver=3.7.1:2:40035)
(rest left out)

I also see the same error occur when I use nested DataTables, but here adding an empty table did not solve the problem.

For this problem I would need to provide login to a testsystem as the code base is to huge to create a test case from...

Kr,
Bjørn H

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 66,128Questions: 1Answers: 11,025 Site admin
    Answer ✓

    Hi Bjørn,

    Its a bug in Editor 3.1.[01] unfortunately. The good news is that I actually spotted this last week, so the fix is already in place (updated test case with the nightly).

    I'm going to be releasing Editor 3.1.2 with the fix in the next couple of days.

    Apologies for the error.

    Regards,
    Allan

Sign In or Register to comment.