Skip to content

Commit

Permalink
fix undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianHung committed Jun 11, 2024
1 parent 3ad0d3d commit d3c95da
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/core/src/data-editor/data-editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3922,6 +3922,10 @@ const DataEditorImpl: React.ForwardRefRenderFunction<DataEditorRef, DataEditorPr
}

const args = gridRef.current.getMouseArgsForPosition(posX, posY, ev);
if (args === undefined) {
return undefined;
}

return {
...args, // FIXME: Mutate
location: [args.location[0] - rowMarkerOffset, args.location[1]] as any,
Expand Down

0 comments on commit d3c95da

Please sign in to comment.