Skip to content

Commit 37644e6

Browse files
authored
Merge branch 'canary' into ts42
2 parents 7f44ef1 + 01f268c commit 37644e6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/DataGrid.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ type DefaultColumnOptions<R, SR> = Pick<Column<R, SR>,
6060
const body = globalThis.document?.body;
6161

6262
export interface DataGridHandle {
63+
element: HTMLDivElement | null;
6364
scrollToColumn: (colIdx: number) => void;
6465
scrollToRow: (rowIdx: number) => void;
6566
selectCell: (position: Position, openEditor?: boolean) => void;
@@ -289,6 +290,7 @@ function DataGrid<R, SR>({
289290
});
290291

291292
useImperativeHandle(ref, () => ({
293+
element: gridRef.current,
292294
scrollToColumn(idx: number) {
293295
scrollToCell({ idx });
294296
},

0 commit comments

Comments
 (0)