gantt-task-react-v 1.5.22 → 1.5.23
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.
|
@@ -10224,7 +10224,7 @@ const TaskListTableRowInner = forwardRef(
|
|
|
10224
10224
|
if (task.type !== "empty") {
|
|
10225
10225
|
scrollToTask(task);
|
|
10226
10226
|
}
|
|
10227
|
-
if (event.detail < 2) {
|
|
10227
|
+
if (event.detail < 2 || !isSelected) {
|
|
10228
10228
|
selectTaskOnMouseDown(task.id, event);
|
|
10229
10229
|
}
|
|
10230
10230
|
if (onClick) {
|
|
@@ -20808,6 +20808,7 @@ const Gantt = (props) => {
|
|
|
20808
20808
|
if (enableDrawer && (drawerData == null ? void 0 : drawerData.type) === "task" && drawerData.task.id === task.id) {
|
|
20809
20809
|
return;
|
|
20810
20810
|
}
|
|
20811
|
+
selectTask(task.id);
|
|
20811
20812
|
if (enableDrawer) {
|
|
20812
20813
|
setActiveArrowKey(null);
|
|
20813
20814
|
setActiveTaskId(task.id);
|
|
@@ -20817,7 +20818,7 @@ const Gantt = (props) => {
|
|
|
20817
20818
|
taskBar.onDoubleClick(task);
|
|
20818
20819
|
}
|
|
20819
20820
|
},
|
|
20820
|
-
[enableDrawer, drawerData, taskBar]
|
|
20821
|
+
[enableDrawer, drawerData, selectTask, taskBar]
|
|
20821
20822
|
);
|
|
20822
20823
|
const handleTaskRowClick = useCallback(
|
|
20823
20824
|
(task) => {
|
|
@@ -10241,7 +10241,7 @@
|
|
|
10241
10241
|
if (task.type !== "empty") {
|
|
10242
10242
|
scrollToTask(task);
|
|
10243
10243
|
}
|
|
10244
|
-
if (event.detail < 2) {
|
|
10244
|
+
if (event.detail < 2 || !isSelected) {
|
|
10245
10245
|
selectTaskOnMouseDown(task.id, event);
|
|
10246
10246
|
}
|
|
10247
10247
|
if (onClick) {
|
|
@@ -20825,6 +20825,7 @@
|
|
|
20825
20825
|
if (enableDrawer && (drawerData == null ? void 0 : drawerData.type) === "task" && drawerData.task.id === task.id) {
|
|
20826
20826
|
return;
|
|
20827
20827
|
}
|
|
20828
|
+
selectTask(task.id);
|
|
20828
20829
|
if (enableDrawer) {
|
|
20829
20830
|
setActiveArrowKey(null);
|
|
20830
20831
|
setActiveTaskId(task.id);
|
|
@@ -20834,7 +20835,7 @@
|
|
|
20834
20835
|
taskBar.onDoubleClick(task);
|
|
20835
20836
|
}
|
|
20836
20837
|
},
|
|
20837
|
-
[enableDrawer, drawerData, taskBar]
|
|
20838
|
+
[enableDrawer, drawerData, selectTask, taskBar]
|
|
20838
20839
|
);
|
|
20839
20840
|
const handleTaskRowClick = React.useCallback(
|
|
20840
20841
|
(task) => {
|
package/package.json
CHANGED