gantt-lib 0.24.0 → 0.24.1
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.
- package/dist/index.js +7 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4608,13 +4608,18 @@ var TaskListRow = import_react10.default.memo(
|
|
|
4608
4608
|
}
|
|
4609
4609
|
},
|
|
4610
4610
|
onMouseEnter: () => setHighlightedDependencyIndex(index),
|
|
4611
|
+
onKeyDown: (e) => {
|
|
4612
|
+
if (isAlreadyLinked && (e.key === "Delete" || e.key === "Backspace")) {
|
|
4613
|
+
e.preventDefault();
|
|
4614
|
+
handleSearchRemove(candidate.id);
|
|
4615
|
+
}
|
|
4616
|
+
},
|
|
4611
4617
|
title: label,
|
|
4612
4618
|
children: [
|
|
4613
4619
|
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("span", { className: "gantt-tl-dep-source-option-label", children: label }),
|
|
4614
4620
|
isAlreadyLinked && /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
4615
|
-
"
|
|
4621
|
+
"span",
|
|
4616
4622
|
{
|
|
4617
|
-
type: "button",
|
|
4618
4623
|
className: "gantt-tl-dep-source-option-remove",
|
|
4619
4624
|
onClick: (e) => {
|
|
4620
4625
|
e.stopPropagation();
|