We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
totalPages
1 parent 99342b6 commit e5b1ed1Copy full SHA for e5b1ed1
.changeset/ninety-pets-eat.md
@@ -0,0 +1,5 @@
1
+---
2
+'@careswitch/svelte-data-table': patch
3
4
+
5
+fix: `totalPages` should react to changes in base rows
src/lib/DataTable.svelte.ts
@@ -223,7 +223,8 @@ export class DataTable<T> {
223
* @returns {number} The total number of pages.
224
*/
225
get totalPages() {
226
- // React to changes in filter state
+ // React to changes in original data and filter state
227
+ this.#originalData;
228
this.#filterState;
229
this.#globalFilter;
230
0 commit comments