Skip to content

Commit ed69b69

Browse files
committed
Updating baseRows should retrigger filterState
1 parent 3c6d937 commit ed69b69

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.changeset/red-cheetahs-move.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@careswitch/svelte-data-table': patch
3+
---
4+
5+
Updating `baseRows` should retrigger filterState

src/lib/DataTable.svelte.ts

+1
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ export class DataTable<T> {
157157
this.#originalData = [...rows];
158158
this.#currentPage = 1;
159159
this.#isFilterDirty = true;
160+
this.#filterState = this.#filterState;
160161
}
161162

162163
/**

0 commit comments

Comments
 (0)