gantt-task-react-v 1.5.13 → 1.5.14

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.
@@ -10225,9 +10225,11 @@ const TaskListTableRowInner = forwardRef(
10225
10225
  if (task.type !== "empty") {
10226
10226
  scrollToTask(task);
10227
10227
  }
10228
- selectTaskOnMouseDown(task.id, event);
10229
- if (onClick) {
10230
- onClick(task);
10228
+ if (event.detail < 2) {
10229
+ selectTaskOnMouseDown(task.id, event);
10230
+ if (onClick) {
10231
+ onClick(task);
10232
+ }
10231
10233
  }
10232
10234
  },
10233
10235
  [onClick, scrollToTask, selectTaskOnMouseDown, task]
@@ -10242,9 +10242,11 @@
10242
10242
  if (task.type !== "empty") {
10243
10243
  scrollToTask(task);
10244
10244
  }
10245
- selectTaskOnMouseDown(task.id, event);
10246
- if (onClick) {
10247
- onClick(task);
10245
+ if (event.detail < 2) {
10246
+ selectTaskOnMouseDown(task.id, event);
10247
+ if (onClick) {
10248
+ onClick(task);
10249
+ }
10248
10250
  }
10249
10251
  },
10250
10252
  [onClick, scrollToTask, selectTaskOnMouseDown, task]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gantt-task-react-v",
3
- "version": "1.5.13",
3
+ "version": "1.5.14",
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",