@syncfusion/ej2-querybuilder 33.2.5 → 33.2.7

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.
@@ -5407,7 +5407,9 @@ let QueryBuilder = class QueryBuilder extends Component {
5407
5407
  if (this.headerTemplate && isRoot) {
5408
5408
  this.isRoot = true;
5409
5409
  }
5410
- this.clearQBTemplate();
5410
+ if (isNullOrUndefined(this.headerTemplate)) {
5411
+ this.clearQBTemplate();
5412
+ }
5411
5413
  this.reset();
5412
5414
  this.groupIdCounter = 1;
5413
5415
  this.ruleIdCounter = 0;
@@ -6307,6 +6309,13 @@ let QueryBuilder = class QueryBuilder extends Component {
6307
6309
  if (this.element.querySelectorAll('.e-group-container').length > this.maxGroupCount) {
6308
6310
  return null;
6309
6311
  }
6312
+ if (isNullOrUndefined(this.updatedRule) && this.allowDragAndDrop && this.dragElement &&
6313
+ this.dragElement.querySelector('.e-rule-list') && this.dragElement.querySelector('.e-rule-list').querySelector('.e-group-container')) {
6314
+ this.updatedRule = {
6315
+ isLocked: ruleColl[i].isLocked, condition: ruleColl[i].condition,
6316
+ not: ruleColl[i].not
6317
+ };
6318
+ }
6310
6319
  parentElem = this.renderGroup(ruleColl[i], ruleColl[i].condition, parentElem, ruleColl[i].not);
6311
6320
  parentElem = this.importRules(ruleColl[i], parentElem, true);
6312
6321
  }