@syncfusion/ej2-gantt 22.2.10 → 22.2.11

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.
@@ -13565,7 +13565,7 @@ class FocusModule {
13565
13565
  }
13566
13566
  else if (isNullOrUndefined(document.getElementById(this.parent.element.id + '_dialog'))) {
13567
13567
  e.preventDefault();
13568
- ganttObj.addRecord(undefined, this.parent.editSettings.newRowPosition);
13568
+ ganttObj.addRecord(undefined, this.parent.editSettings.newRowPosition, this.parent.selectedRowIndex);
13569
13569
  const focussedElement = ganttObj.element;
13570
13570
  focussedElement.focus();
13571
13571
  }
@@ -16942,8 +16942,8 @@ let Gantt = class Gantt extends Component {
16942
16942
  if (!isNullOrUndefined(taskfields.dependency)) {
16943
16943
  data[taskfields.dependency] = null;
16944
16944
  }
16945
- const position = 'Below';
16946
- this.addRecord(data, position);
16945
+ const position = this.editSettings.newRowPosition;
16946
+ this.addRecord(data, position, this.selectedRowIndex);
16947
16947
  }
16948
16948
  else {
16949
16949
  if (!rowData.hasChildRecords && !rowData.ganttProperties.isMilestone) {
@@ -22596,7 +22596,7 @@ class DialogEdit {
22596
22596
  }
22597
22597
  }
22598
22598
  else {
22599
- this.parent.editModule.addRecord(this.addedRecord, this.parent.editSettings.newRowPosition);
22599
+ this.parent.editModule.addRecord(this.addedRecord, this.parent.editSettings.newRowPosition, this.parent.selectedRowIndex);
22600
22600
  }
22601
22601
  }
22602
22602
  return true;
@@ -27975,8 +27975,13 @@ class Filter$1 {
27975
27975
  break;
27976
27976
  }
27977
27977
  if (!isNullOrUndefined(this.parent.element.parentNode)) {
27978
+ if (parentNode.parentNode instanceof HTMLDocument) {
27979
+ break;
27980
+ }
27978
27981
  parentNode = parentNode.parentNode;
27979
- marginTop = parentNode.parentNode.style.marginTop;
27982
+ if (parentNode.parentNode && parentNode.parentNode.style) {
27983
+ marginTop = parentNode.parentNode.style.marginTop;
27984
+ }
27980
27985
  }
27981
27986
  parentNodeTop = parentNode.getBoundingClientRect().top;
27982
27987
  }