fix(grid): reset scroll for replacement query results

Closes #5950
This commit is contained in:
t8y2 committed 2026-08-12 06:17:42 +00:00
1 parent c27a4dd83d
commit 143143a88d
9 files changed
+111 -12

No files matched your search

@@ -358,6 +358,7 @@ interface DataGridProps {
countTotalRows?: () => Promise<number | undefined>;
loading?: boolean;
cacheKey?: string;
pendingStateKey?: string;
exportSql?: string;
onExecuteSql?: (sql: string) => Promise<void>;
fullExportResult?: (onProgress?: (info: { rowsExported: number; totalRows: number | null }) => void) => Promise<QueryResult | undefined>;
@@ -3115,7 +3116,7 @@ const editor = useDataGridEditor({
getRowItem,
pageSize,
currentPage,
cacheKey: computed(() => props.cacheKey),
cacheKey: computed(() => props.pendingStateKey ?? props.cacheKey),
onResultPayloadMutated: () => queryStore.invalidateResultEstimateForPayload(props.result),
emit,
});