Skip to content

Commit

Permalink
fix: include last column in copy when row selected with marker
Browse files Browse the repository at this point in the history
  • Loading branch information
vabrahamyanadobe committed May 22, 2023
1 parent 395de03 commit 71d2c3c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/core/src/data-editor/data-editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1531,7 +1531,6 @@ const DataEditorImpl: React.ForwardRefRenderFunction<DataEditorRef, DataEditorPr

const enterCellEditMode: EnterCellEditModeFn = React.useCallback(
([col, row], initialValue): void => {

const cell = getCellContentRef.current([col - rowMarkerOffset, row]);
const bounds = gridRef.current?.getBounds(col, row);

Expand All @@ -1545,7 +1544,6 @@ const DataEditorImpl: React.ForwardRefRenderFunction<DataEditorRef, DataEditorPr
forceEditMode: true,
});
}

},
[rowMarkerOffset, setOverlaySimple]
);
Expand Down Expand Up @@ -3251,7 +3249,7 @@ const DataEditorImpl: React.ForwardRefRenderFunction<DataEditorRef, DataEditorPr
{
x: rowMarkerOffset,
y: rowIndex,
width: columnsIn.length - rowMarkerOffset,
width: columnsIn.length,
height: 1,
},
abortControllerRef.current.signal
Expand Down

0 comments on commit 71d2c3c

Please sign in to comment.