Error when reordering columns with data-sort attribute

Error when reordering columns with data-sort attribute

urskscursksc Posts: 1Questions: 1Answers: 0

Hi,

I noticed there is an error when reordering columns with data-sort attribute. The error is:
Uncaught TypeError: Cannot create property 'display' on string 'Mercedes', where 'Mercedes' is value of data-sort attribute.

JsFiddle where the problem can be reproduced: https://jsfiddle.net/o5zn7opw/3/ -- error occurs when column 'Brand' is moved between 'ID' and 'Year'. data-sort attribute is on 'Year' cells.

After that error, sorting of 'Brand' column also stops working - a popup with following explanation appears: DataTabkes warning: table id=DataTables_Table_0 - Requested unknown parameter '[object Object]' for row 0, column 2. For more information about this error, please see http://datatables.net/tn/4

Without data-sort attributes everything works as expected.

Any idea why would this happen?

Thanks for you help.

Uros

Answers

  • marcobaxmarcobax Posts: 1Questions: 0Answers: 0

    I've had the exact same problem as ursksc using version 1.10.9 (and lower). Updating the library to version 1.10.12 fixes the problem !

This discussion has been closed.