When more than 10 columns, sorting icons displays wrong when sorting

When more than 10 columns, sorting icons displays wrong when sorting

NahojNahoj Posts: 2Questions: 1Answers: 0
edited March 11 in Free community support

Link to test case:
https://live.datatables.net/jicosumi/1

Error messages shown:
None

Description of problem:
Hello, got this when updating from a really old version of Datatables to the latest (2.0.2 as of the time of writing) on a page with 40+ columns

When there is more than 10 columns and trying to sort on column index 10 and above, the colums with index -10 is showing a highlighted descending arrow aswell awell. The sorting column works and shows the correct asc/desc icon, but also always highlights the desc icon on column index -10.

When sorting is applied on column index 10, column index 0 and 1 will highlight the descending arrow icon.
When sorting is applied on column index 11, column index 1 will highlight the descending arrow icon and so on.

I can recreate the issue out of the box, as my testcase shows.

Hope that someone knows whats up and can fix it, thank you for an awesome product :smile:

Answers

  • allanallan Posts: 61,753Questions: 1Answers: 10,111 Site admin

    Funnily enough, this was posted just yesterday as well. I'm going to look at a fix shortly.

    Allan

  • NahojNahoj Posts: 2Questions: 1Answers: 0

    Ah, and i did a search before, but my searching skills are clearly lacking :wink:
    Thank you for looking into the issue!

Sign In or Register to comment.