vincjo / datatables

A toolkit for creating datatable components with Svelte
https://vincjo.fr/datatables
MIT License
372 stars 15 forks source link

Bug: setRows() changes getSorted store #37

Closed MattPurland closed 1 year ago

MattPurland commented 1 year ago

I've discovered an issue where if setRows() is used to apply new data the contents of the getSorted store goes from this (for example):

{identifier: 'Supplier Name', direction: 'asc', fn: ƒ}

to this:

{identifier: '(row) => row[orderBy]', direction: 'asc', fn: ƒ}

The data in the table itself is sorted correctly, but visually (the component) no longer displays the correct sorting direction (based on your example)

vincjo commented 1 year ago

Thanks for pointing it out bug fix just realeased in 1.10.4