@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.
@@ -6974,6 +6974,9 @@ var GanttTreeGrid = /** @__PURE__ @class */ (function () {
6974
6974
  if (getValue('requestType', args) === 'refresh' && isNullOrUndefined(getValue('type', args)) && this.parent.addDeleteRecord) {
6975
6975
  if (this.parent.selectedRowIndex != -1) {
6976
6976
  this.parent.selectRow(this.parent.selectedRowIndex);
6977
+ if (this.parent.selectedRowIndex > this.parent.currentViewData.length - 1) {
6978
+ this.parent.selectedRowIndex = -1;
6979
+ }
6977
6980
  }
6978
6981
  else {
6979
6982
  this.parent.selectRow(0);
@@ -12229,9 +12232,9 @@ var FocusModule = /** @__PURE__ @class */ (function () {
12229
12232
  {
12230
12233
  if (isNullOrUndefined(document.getElementById(this.parent.element.id + '_dialog'))) {
12231
12234
  e.preventDefault();
12232
- var focussedElement = ganttObj.element.querySelector('.e-gantt-chart');
12233
- focussedElement.focus();
12234
12235
  ganttObj.addRecord();
12236
+ var focussedElement = ganttObj.element;
12237
+ focussedElement.focus();
12235
12238
  }
12236
12239
  break;
12237
12240
  }
@@ -19399,7 +19402,7 @@ var DialogEdit = /** @__PURE__ @class */ (function () {
19399
19402
  inputValue = dialog.querySelector('#' + ganttId + 'SegmentsTabContainer' + columnName)
19400
19403
  .ej2_instances[0];
19401
19404
  }
19402
- if (inputValue.value !== tempValue.toString()) {
19405
+ if (inputValue.value.toString() !== tempValue.toString()) {
19403
19406
  inputValue.value = tempValue;
19404
19407
  inputValue.dataBind();
19405
19408
  }
@@ -22025,7 +22028,7 @@ var Edit$2 = /** @__PURE__ @class */ (function () {
22025
22028
  this.updateParentItemOnEditing();
22026
22029
  }
22027
22030
  /** Update parent up-to zeroth level */
22028
- if (ganttRecord.parentItem || this.parent.taskMode !== 'Auto') {
22031
+ if (ganttRecord.parentItem) {
22029
22032
  this.parent.dataOperation.updateParentItems(ganttRecord, true);
22030
22033
  }
22031
22034
  this.initiateSaveAction(args);