diff --git a/packages/iris-grid/src/mousehandlers/IrisGridDataSelectMouseHandler.ts b/packages/iris-grid/src/mousehandlers/IrisGridDataSelectMouseHandler.ts index 2c4e1bdf71..bf64068d44 100644 --- a/packages/iris-grid/src/mousehandlers/IrisGridDataSelectMouseHandler.ts +++ b/packages/iris-grid/src/mousehandlers/IrisGridDataSelectMouseHandler.ts @@ -1,5 +1,6 @@ /* eslint class-methods-use-this: "off" */ import { + type Grid, GridMouseHandler, GridPoint, EventHandlerResult, @@ -18,7 +19,7 @@ class IrisGridDataSelectMouseHandler extends GridMouseHandler { irisGrid: IrisGrid; - onDoubleClick(gridPoint: GridPoint): EventHandlerResult { + onDoubleClick(gridPoint: GridPoint, grid: Grid): EventHandlerResult { const { column, row } = gridPoint; if (row == null || column == null) { return false; @@ -26,6 +27,8 @@ class IrisGridDataSelectMouseHandler extends GridMouseHandler { this.irisGrid.selectData(column, row); + grid.moveCursorToPosition(column, row); + return true; } }