@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.
@@ -5483,7 +5483,9 @@ var QueryBuilder = /** @__PURE__ @class */ (function (_super) {
5483
5483
  if (this.headerTemplate && isRoot) {
5484
5484
  this.isRoot = true;
5485
5485
  }
5486
- this.clearQBTemplate();
5486
+ if (isNullOrUndefined(this.headerTemplate)) {
5487
+ this.clearQBTemplate();
5488
+ }
5487
5489
  this.reset();
5488
5490
  this.groupIdCounter = 1;
5489
5491
  this.ruleIdCounter = 0;
@@ -6383,6 +6385,13 @@ var QueryBuilder = /** @__PURE__ @class */ (function (_super) {
6383
6385
  if (this.element.querySelectorAll('.e-group-container').length > this.maxGroupCount) {
6384
6386
  return null;
6385
6387
  }
6388
+ if (isNullOrUndefined(this.updatedRule) && this.allowDragAndDrop && this.dragElement &&
6389
+ this.dragElement.querySelector('.e-rule-list') && this.dragElement.querySelector('.e-rule-list').querySelector('.e-group-container')) {
6390
+ this.updatedRule = {
6391
+ isLocked: ruleColl[i].isLocked, condition: ruleColl[i].condition,
6392
+ not: ruleColl[i].not
6393
+ };
6394
+ }
6386
6395
  parentElem = this.renderGroup(ruleColl[i], ruleColl[i].condition, parentElem, ruleColl[i].not);
6387
6396
  parentElem = this.importRules(ruleColl[i], parentElem, true);
6388
6397
  }