gantt-task-react-v 1.1.11 → 1.1.12

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.
@@ -18089,13 +18089,15 @@ function ContextMenu(props) {
18089
18089
  }, [task, checkHasCopyTasks, checkHasCutTasks, options]);
18090
18090
  const handleOptionAction = useCallback(
18091
18091
  (option) => {
18092
- var _a2;
18093
18092
  handleCloseContextMenu();
18094
18093
  if (!task) {
18095
18094
  return;
18096
18095
  }
18097
- (_a2 = props.onSelectTask) == null ? void 0 : _a2.call(props, task.id);
18098
18096
  handleAction(task, option.action);
18097
+ requestAnimationFrame(() => {
18098
+ var _a2;
18099
+ (_a2 = props.onSelectTask) == null ? void 0 : _a2.call(props, task.id);
18100
+ });
18099
18101
  },
18100
18102
  [handleAction, handleCloseContextMenu, task]
18101
18103
  );
@@ -18106,13 +18106,15 @@
18106
18106
  }, [task, checkHasCopyTasks, checkHasCutTasks, options]);
18107
18107
  const handleOptionAction = React.useCallback(
18108
18108
  (option) => {
18109
- var _a2;
18110
18109
  handleCloseContextMenu();
18111
18110
  if (!task) {
18112
18111
  return;
18113
18112
  }
18114
- (_a2 = props.onSelectTask) == null ? void 0 : _a2.call(props, task.id);
18115
18113
  handleAction(task, option.action);
18114
+ requestAnimationFrame(() => {
18115
+ var _a2;
18116
+ (_a2 = props.onSelectTask) == null ? void 0 : _a2.call(props, task.id);
18117
+ });
18116
18118
  },
18117
18119
  [handleAction, handleCloseContextMenu, task]
18118
18120
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gantt-task-react-v",
3
- "version": "1.1.11",
3
+ "version": "1.1.12",
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",