fix(grid): hydrate large values across result changes

This commit is contained in:
zipg authored and GitHub committed 2026-08-14 11:28:10 +08:00
1 parent 56cacd0441
commit 348e3a0c70
4 files changed
+99 -22

No files matched your search

@@ -7,5 +7,12 @@ describe("DataGrid cell detail selection", () => {
it("resynchronizes the open detail after a mouse selection gesture finishes", () => {
expect(dataGridSource).toContain("watch([selectedRange, showCellDetail, isEditingDetail, isSelectingCells]");
expect(dataGridSource).toContain("if (isSelectingCells.value) return;");
expect(dataGridSource).toMatch(/detailCell\.value = target;\s+hydrateCellDetailTarget\(target\);/);
});
it("hydrates bounded large-value previews for every cell detail target", () => {
expect(dataGridSource).toMatch(/function hydrateCellDetailTarget[\s\S]*?isLargeValuePreview[\s\S]*?hydrateLargeValueCell/);
expect(dataGridSource).toMatch(/showCellDetails[\s\S]*?hydrateCellDetailTarget\(detailCell\.value\)/);
expect(dataGridSource).toMatch(/openCellDetailDialog[\s\S]*?hydrateCellDetailTarget\(cellDetailDialogTarget\.value\)/);
});
});