gantt-task-react-v 1.1.13 → 1.1.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.
@@ -19942,7 +19942,7 @@ const Gantt = (props) => {
19942
19942
  } catch (err) {
19943
19943
  console.error(err);
19944
19944
  }
19945
- if (task && task.type !== "empty") {
19945
+ if (task && task.type !== "empty" && contextMenuOptions.length > 0) {
19946
19946
  selectTask(task.id);
19947
19947
  }
19948
19948
  handleOpenContextMenu(task, clientX, clientY, contextMenuOptions);
@@ -19959,7 +19959,7 @@
19959
19959
  } catch (err) {
19960
19960
  console.error(err);
19961
19961
  }
19962
- if (task && task.type !== "empty") {
19962
+ if (task && task.type !== "empty" && contextMenuOptions.length > 0) {
19963
19963
  selectTask(task.id);
19964
19964
  }
19965
19965
  handleOpenContextMenu(task, clientX, clientY, contextMenuOptions);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gantt-task-react-v",
3
- "version": "1.1.13",
3
+ "version": "1.1.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",