Skip to content

Commit

Permalink
Updating baseRows should retrigger filterState
Browse files Browse the repository at this point in the history
  • Loading branch information
pheuter committed Jul 16, 2024
1 parent 3c6d937 commit ed69b69
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/red-cheetahs-move.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@careswitch/svelte-data-table': patch
---

Updating `baseRows` should retrigger filterState
1 change: 1 addition & 0 deletions src/lib/DataTable.svelte.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ export class DataTable<T> {
this.#originalData = [...rows];
this.#currentPage = 1;
this.#isFilterDirty = true;
this.#filterState = this.#filterState;
}

/**
Expand Down

0 comments on commit ed69b69

Please sign in to comment.