@syncfusion/ej2-treegrid 20.3.50 → 20.3.52

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.
@@ -5709,8 +5709,8 @@ var TreeGrid = /** @__PURE__ @class */ (function (_super) {
5709
5709
  if (this.editSettings.mode === 'Batch') {
5710
5710
  var obj = 'dialogObj';
5711
5711
  var showDialog = 'showDialog';
5712
- if (this.getBatchChanges()[this.changedRecords].length ||
5713
- this.getBatchChanges()[this.deletedRecords].length || this.getBatchChanges()[this.addedRecords].length) {
5712
+ if ((this.getBatchChanges()[this.changedRecords].length ||
5713
+ this.getBatchChanges()[this.deletedRecords].length || this.getBatchChanges()[this.addedRecords].length) && this.editSettings.showConfirmDialog) {
5714
5714
  var dialogObj = this.grid.editModule[obj];
5715
5715
  this.grid.editModule[showDialog]('CancelEdit', dialogObj);
5716
5716
  this.targetElement = target;