@syncfusion/ej2-gantt 19.4.38 → 19.4.40

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.
@@ -6905,6 +6905,9 @@ class GanttTreeGrid {
6905
6905
  if (getValue('requestType', args) === 'refresh' && isNullOrUndefined(getValue('type', args)) && this.parent.addDeleteRecord) {
6906
6906
  if (this.parent.selectedRowIndex != -1) {
6907
6907
  this.parent.selectRow(this.parent.selectedRowIndex);
6908
+ if (this.parent.selectedRowIndex > this.parent.currentViewData.length - 1) {
6909
+ this.parent.selectedRowIndex = -1;
6910
+ }
6908
6911
  }
6909
6912
  else {
6910
6913
  this.parent.selectRow(0);
@@ -11831,9 +11834,9 @@ class FocusModule {
11831
11834
  {
11832
11835
  if (isNullOrUndefined(document.getElementById(this.parent.element.id + '_dialog'))) {
11833
11836
  e.preventDefault();
11834
- const focussedElement = ganttObj.element.querySelector('.e-gantt-chart');
11835
- focussedElement.focus();
11836
11837
  ganttObj.addRecord();
11838
+ const focussedElement = ganttObj.element;
11839
+ focussedElement.focus();
11837
11840
  }
11838
11841
  break;
11839
11842
  }
@@ -18935,7 +18938,7 @@ class DialogEdit {
18935
18938
  inputValue = dialog.querySelector('#' + ganttId + 'SegmentsTabContainer' + columnName)
18936
18939
  .ej2_instances[0];
18937
18940
  }
18938
- if (inputValue.value !== tempValue.toString()) {
18941
+ if (inputValue.value.toString() !== tempValue.toString()) {
18939
18942
  inputValue.value = tempValue;
18940
18943
  inputValue.dataBind();
18941
18944
  }
@@ -21521,7 +21524,7 @@ class Edit$2 {
21521
21524
  this.updateParentItemOnEditing();
21522
21525
  }
21523
21526
  /** Update parent up-to zeroth level */
21524
- if (ganttRecord.parentItem || this.parent.taskMode !== 'Auto') {
21527
+ if (ganttRecord.parentItem) {
21525
21528
  this.parent.dataOperation.updateParentItems(ganttRecord, true);
21526
21529
  }
21527
21530
  this.initiateSaveAction(args);