Mottie / tablesorter

Github fork of Christian Bach's tablesorter plugin + awesomeness ~
https://mottie.github.io/tablesorter/docs/
2.61k stars 754 forks source link

StickyHeader not updating visually when clicked #97

Closed Shenlok closed 12 years ago

Shenlok commented 12 years ago

I'm using stickyHeaders and saveSort on my page, with a large but simple table. Everything has worked fine so far, but when I enabled the stickyHeaders widget I noticed that upon clicking a column header in the stickyHeader, the sort would occur but the stickyHeader wouldn't update to show which column(s) the table is being sorted by. When I scroll back up to the top of the page the normal header is updated and works as expected, but the stickyHeader's visual state remains as it was when the page loaded.

I don't understand why this happens, the example in the wiki appears to work fine, however my code does not. No errors appear in the JS console. Using the blue theme.

Shenlok commented 12 years ago

I figured it out; I was mistakenly setting the sticky header's class myself, which caused a conflict somewhere along the line. Apologies! And thanks for the great lib :)