@syncfusion/ej2-gantt 21.2.5 → 21.2.6

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.
@@ -1716,7 +1716,7 @@ class TaskProcessor extends DateProcessor {
1716
1716
  constructResourceViewDataSource(resources, data, unassignedTasks) {
1717
1717
  for (let i = 0; i < data.length; i++) {
1718
1718
  const tempData = data[i];
1719
- const child = this.parent.taskFields.child != null ? this.parent.taskFields.child : 'Children';
1719
+ const child = this.parent.taskFields.child != null ? this.parent.taskFields.child : this.parent.taskFields.child = 'Children';
1720
1720
  const resourceData = tempData && tempData[this.parent.taskFields.resourceInfo];
1721
1721
  const resourceIdMapping = this.parent.resourceFields.id;
1722
1722
  if ((!tempData[child] || tempData[child].length === 0) && resourceData && resourceData.length) {
@@ -13344,7 +13344,10 @@ class FocusModule {
13344
13344
  break;
13345
13345
  case 'addRow':
13346
13346
  {
13347
- if (isNullOrUndefined(document.getElementById(this.parent.element.id + '_dialog'))) {
13347
+ if (ganttObj.editModule && ganttObj.editModule.cellEditModule && ganttObj.editModule.cellEditModule.isCellEdit) {
13348
+ e.stopPropagation();
13349
+ }
13350
+ else if (isNullOrUndefined(document.getElementById(this.parent.element.id + '_dialog'))) {
13348
13351
  e.preventDefault();
13349
13352
  ganttObj.addRecord(undefined, this.parent.editSettings.newRowPosition);
13350
13353
  const focussedElement = ganttObj.element;
@@ -13866,6 +13869,9 @@ let Gantt = class Gantt extends Component {
13866
13869
  const ganttHeader = this.chartPane.childNodes[0].childNodes[0];
13867
13870
  this.scrollLeftValue = this.chartPane.childNodes[0].childNodes[0]['scrollLeft'];
13868
13871
  const ganttContent = this.chartPane.childNodes[0].childNodes[1];
13872
+ if (this.treeGrid.element) {
13873
+ this.ganttChartModule['setVirtualHeight']();
13874
+ }
13869
13875
  if (!this.contentMaskTable) {
13870
13876
  if (ganttContent) {
13871
13877
  let content$$1 = ganttContent;
@@ -24110,9 +24116,8 @@ class Edit$2 {
24110
24116
  (isNullOrUndefined(taskData.startDate) && !isNullOrUndefined(prevStart)) ||
24111
24117
  (isNullOrUndefined(taskData.endDate) && !isNullOrUndefined(prevEnd)) ||
24112
24118
  (prevStart && prevStart.getTime() !== taskData.startDate.getTime())
24113
- || (prevEnd && prevEnd.getTime() !== taskData.endDate.getTime())
24114
- || (!isNullOrUndefined(prevDuration) && prevDuration !== taskData.duration)
24115
- || (!isNullOrUndefined(prevDuration) && prevDuration === taskData.duration &&
24119
+ && (prevEnd && prevEnd.getTime() !== taskData.endDate.getTime())
24120
+ || (!isNullOrUndefined(prevDuration) && prevDuration !== taskData.duration &&
24116
24121
  prevDurationUnit !== taskData.durationUnit)) {
24117
24122
  isMoved = true;
24118
24123
  }