fix(grid): reset pagination when table filters change

This commit is contained in:
zipg authored and GitHub committed 2026-08-20 18:15:51 +08:00
1 parent 3132b17323
commit db8f262c14
3 files changed
+36 -3

No files matched your search

@@ -18,6 +18,8 @@ describe("DataGrid save reload integration", () => {
expect(dataGridSource).toContain("prepareFullReload,\n emit,");
expect(toolbarSource).toContain("prepareFullReload();");
expect(toolbarSource).toContain("const resetToFirstPage = hasPendingConditionInputs();");
expect(toolbarSource).toContain("resetToFirstPage ? 0 : (currentPage.value - 1) * pageSize.value");
expect(prepareSource).toContain("resetInfiniteScrollState();");
expect(prepareSource).toContain("captureCurrentSelectionForRefresh();");
expect(prepareSource).toContain("preservedSelectionOnNextResult = selection ? { selection, sourceResult: props.result } : null;");