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 && task.id) {
19120
- onRowContextMenu(task.id);
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 && task.id) {
19137
- onRowContextMenu(task.id);
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.id` of the clicked row.
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?: (taskId: string) => void;
314
+ onRowContextMenu?: (task: RenderTask) => void;
315
315
  /**
316
316
  * Recount descedents of a group task when moving
317
317
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gantt-task-react-v",
3
- "version": "1.1.9",
3
+ "version": "1.1.10",
4
4
  "description": "Interactive Gantt Chart for React with TypeScript.",
5
5
  "author": "aguilanbon",
6
6
  "homepage": "https://github.com/aguilanbon/gantt-task-react-v",