filamentgroup / tablesaw

A group of plugins for responsive tables.
MIT License
5.48k stars 434 forks source link

Unable to sort table after updating header columns #254

Closed dshrestha closed 7 years ago

dshrestha commented 7 years ago

We are unable to use sorting functionality once we update the table headers, even if we re-initialize table saw plugin.

Here is the jsfiddle showing the issue: http://jsfiddle.net/ox0vvzah/

Step 1: Initially we are able to sort the table by "movie title" Step 2: click on "refresh header" button which basically removes the header and appends it back Step 3: unable to sort by "movie title"

This might seem like weird use case, but this is a legit bug when using table saw with emberjs. We use table saw with ember where the column can be filtered out. The sorting works fine in initial load, but when we filter out one(or more) of the header(which causes re-rendering of the table head portion), the sorting no longer works.

Please advise, thanks.