filamentgroup / tablesaw

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

fragment.reverse is not a function - when changed to swipe mode #350

Closed lstsystems closed 5 years ago

lstsystems commented 6 years ago

I have a table that i initialized manually when the page loads everything is fine with the table starting in swipe but if i change to stack and then back to swipe i get this error

Uncaught TypeError: fragment.reverse is not a function

pointing to this part on the code:

if( fragment.length > 1 ){
            fragment = fragment.reverse();
        }

if i initialize the table with stack or toggle instead and then change it to swipe or toggle more than once the same thing happens.

I am using version 3.0.9 but it happened in 3.0.6 as well

Update: it seems to happens when i change to stacks and then back to wither swipe or toggle, if i change between toggle and swipe only no matter how many times i i do it it does not happens.

zachleat commented 5 years ago

Confirmed, I can reproduce on the kitchen sink demo.

zachleat commented 5 years ago

This will be fixed in v3.1.0