gantt-task-react-v 1.1.14 → 1.1.15
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,12 +19942,18 @@ const Gantt = (props) => {
|
|
|
19942
19942
|
} catch (err) {
|
|
19943
19943
|
console.error(err);
|
|
19944
19944
|
}
|
|
19945
|
-
if (task && task.type !== "empty" && contextMenuOptions.length > 0) {
|
|
19945
|
+
if (task && task.type !== "empty" && contextMenuOptions.length > 0 && !selectedIdsMirror[task.id]) {
|
|
19946
19946
|
selectTask(task.id);
|
|
19947
19947
|
}
|
|
19948
19948
|
handleOpenContextMenu(task, clientX, clientY, contextMenuOptions);
|
|
19949
19949
|
},
|
|
19950
|
-
[
|
|
19950
|
+
[
|
|
19951
|
+
onRowContextMenu,
|
|
19952
|
+
handleOpenContextMenu,
|
|
19953
|
+
selectTask,
|
|
19954
|
+
contextMenuOptions,
|
|
19955
|
+
selectedIdsMirror
|
|
19956
|
+
]
|
|
19951
19957
|
);
|
|
19952
19958
|
const ganttContextMenuOptions = useMemo(() => {
|
|
19953
19959
|
if (taskBar.taskGanttContextMenuOption) {
|
|
@@ -19959,12 +19959,18 @@
|
|
|
19959
19959
|
} catch (err) {
|
|
19960
19960
|
console.error(err);
|
|
19961
19961
|
}
|
|
19962
|
-
if (task && task.type !== "empty" && contextMenuOptions.length > 0) {
|
|
19962
|
+
if (task && task.type !== "empty" && contextMenuOptions.length > 0 && !selectedIdsMirror[task.id]) {
|
|
19963
19963
|
selectTask(task.id);
|
|
19964
19964
|
}
|
|
19965
19965
|
handleOpenContextMenu(task, clientX, clientY, contextMenuOptions);
|
|
19966
19966
|
},
|
|
19967
|
-
[
|
|
19967
|
+
[
|
|
19968
|
+
onRowContextMenu,
|
|
19969
|
+
handleOpenContextMenu,
|
|
19970
|
+
selectTask,
|
|
19971
|
+
contextMenuOptions,
|
|
19972
|
+
selectedIdsMirror
|
|
19973
|
+
]
|
|
19968
19974
|
);
|
|
19969
19975
|
const ganttContextMenuOptions = React.useMemo(() => {
|
|
19970
19976
|
if (taskBar.taskGanttContextMenuOption) {
|
package/package.json
CHANGED