@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.
@@ -5449,8 +5449,8 @@ let TreeGrid = TreeGrid_1 = class TreeGrid extends Component {
5449
5449
  if (this.editSettings.mode === 'Batch') {
5450
5450
  const obj = 'dialogObj';
5451
5451
  const showDialog = 'showDialog';
5452
- if (this.getBatchChanges()[this.changedRecords].length ||
5453
- this.getBatchChanges()[this.deletedRecords].length || this.getBatchChanges()[this.addedRecords].length) {
5452
+ if ((this.getBatchChanges()[this.changedRecords].length ||
5453
+ this.getBatchChanges()[this.deletedRecords].length || this.getBatchChanges()[this.addedRecords].length) && this.editSettings.showConfirmDialog) {
5454
5454
  const dialogObj = this.grid.editModule[obj];
5455
5455
  this.grid.editModule[showDialog]('CancelEdit', dialogObj);
5456
5456
  this.targetElement = target;