gantt-task-react-v 1.5.6 → 1.5.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -10218,11 +10218,15 @@ const TaskListTableRowInner = forwardRef(
10218
10218
  const onRowDoubleClick = useCallback(
10219
10219
  (event) => {
10220
10220
  event.preventDefault();
10221
+ selectTaskOnMouseDown(task.id, event);
10222
+ if (task.type !== "empty") {
10223
+ scrollToTask(task);
10224
+ }
10221
10225
  if (onDoubleClick) {
10222
10226
  onDoubleClick(task);
10223
10227
  }
10224
10228
  },
10225
- [onDoubleClick, task]
10229
+ [onDoubleClick, scrollToTask, selectTaskOnMouseDown, task]
10226
10230
  );
10227
10231
  const onRootMouseDown = useCallback(
10228
10232
  (event) => {
@@ -10235,11 +10235,15 @@
10235
10235
  const onRowDoubleClick = React.useCallback(
10236
10236
  (event) => {
10237
10237
  event.preventDefault();
10238
+ selectTaskOnMouseDown(task.id, event);
10239
+ if (task.type !== "empty") {
10240
+ scrollToTask(task);
10241
+ }
10238
10242
  if (onDoubleClick) {
10239
10243
  onDoubleClick(task);
10240
10244
  }
10241
10245
  },
10242
- [onDoubleClick, task]
10246
+ [onDoubleClick, scrollToTask, selectTaskOnMouseDown, task]
10243
10247
  );
10244
10248
  const onRootMouseDown = React.useCallback(
10245
10249
  (event) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gantt-task-react-v",
3
- "version": "1.5.6",
3
+ "version": "1.5.7",
4
4
  "description": "Interactive Gantt Chart for React with TypeScript.",
5
5
  "author": "aguilanbon",
6
6
  "homepage": "https://github.com/aguilanbon/gantt-task-react-v",