gantt-task-react-v 1.1.9 → 1.1.10
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.
|
@@ -19116,8 +19116,8 @@ const Gantt = (props) => {
|
|
|
19116
19116
|
const handleOpenContextMenuForRow = useCallback(
|
|
19117
19117
|
(task, clientX, clientY) => {
|
|
19118
19118
|
try {
|
|
19119
|
-
if (onRowContextMenu && task
|
|
19120
|
-
onRowContextMenu(task
|
|
19119
|
+
if (onRowContextMenu && task) {
|
|
19120
|
+
onRowContextMenu(task);
|
|
19121
19121
|
}
|
|
19122
19122
|
} catch (err) {
|
|
19123
19123
|
console.error(err);
|
|
@@ -19133,8 +19133,8 @@
|
|
|
19133
19133
|
const handleOpenContextMenuForRow = React.useCallback(
|
|
19134
19134
|
(task, clientX, clientY) => {
|
|
19135
19135
|
try {
|
|
19136
|
-
if (onRowContextMenu && task
|
|
19137
|
-
onRowContextMenu(task
|
|
19136
|
+
if (onRowContextMenu && task) {
|
|
19137
|
+
onRowContextMenu(task);
|
|
19138
19138
|
}
|
|
19139
19139
|
} catch (err) {
|
|
19140
19140
|
console.error(err);
|
|
@@ -309,9 +309,9 @@ export interface GanttProps {
|
|
|
309
309
|
*/
|
|
310
310
|
onWheel?: (wheelEvent: WheelEvent) => void;
|
|
311
311
|
/**
|
|
312
|
-
* Invokes when user right-clicks a row in the task list. Receives the `task
|
|
312
|
+
* Invokes when user right-clicks a row in the task list. Receives the full `task` object of the clicked row.
|
|
313
313
|
*/
|
|
314
|
-
onRowContextMenu?: (
|
|
314
|
+
onRowContextMenu?: (task: RenderTask) => void;
|
|
315
315
|
/**
|
|
316
316
|
* Recount descedents of a group task when moving
|
|
317
317
|
*/
|
package/package.json
CHANGED