gantt-task-react-v 1.5.17 → 1.5.18
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.
|
@@ -20844,6 +20844,9 @@ const Gantt = (props) => {
|
|
|
20844
20844
|
);
|
|
20845
20845
|
const handleTaskRowDoubleClick = useCallback(
|
|
20846
20846
|
(task) => {
|
|
20847
|
+
if (task.type !== "empty") {
|
|
20848
|
+
selectTask(task.id);
|
|
20849
|
+
}
|
|
20847
20850
|
if (enableDrawer && task.type !== "empty") {
|
|
20848
20851
|
setActiveArrowKey(null);
|
|
20849
20852
|
setActiveTaskId(task.id);
|
|
@@ -20853,7 +20856,7 @@ const Gantt = (props) => {
|
|
|
20853
20856
|
onDoubleClickTaskRow(task);
|
|
20854
20857
|
}
|
|
20855
20858
|
},
|
|
20856
|
-
[enableDrawer, onDoubleClickTaskRow]
|
|
20859
|
+
[enableDrawer, onDoubleClickTaskRow, selectTask]
|
|
20857
20860
|
);
|
|
20858
20861
|
const handleDrawerClose = useCallback(() => {
|
|
20859
20862
|
setDrawerData(null);
|
|
@@ -20861,6 +20861,9 @@
|
|
|
20861
20861
|
);
|
|
20862
20862
|
const handleTaskRowDoubleClick = React.useCallback(
|
|
20863
20863
|
(task) => {
|
|
20864
|
+
if (task.type !== "empty") {
|
|
20865
|
+
selectTask(task.id);
|
|
20866
|
+
}
|
|
20864
20867
|
if (enableDrawer && task.type !== "empty") {
|
|
20865
20868
|
setActiveArrowKey(null);
|
|
20866
20869
|
setActiveTaskId(task.id);
|
|
@@ -20870,7 +20873,7 @@
|
|
|
20870
20873
|
onDoubleClickTaskRow(task);
|
|
20871
20874
|
}
|
|
20872
20875
|
},
|
|
20873
|
-
[enableDrawer, onDoubleClickTaskRow]
|
|
20876
|
+
[enableDrawer, onDoubleClickTaskRow, selectTask]
|
|
20874
20877
|
);
|
|
20875
20878
|
const handleDrawerClose = React.useCallback(() => {
|
|
20876
20879
|
setDrawerData(null);
|
package/package.json
CHANGED