@syncfusion/ej2-querybuilder 33.1.46 → 33.1.49

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.
@@ -4291,7 +4291,7 @@ var QueryBuilder = /** @__PURE__ @class */ (function (_super) {
4291
4291
  var parent_1 = this.element.querySelector('#' + groupID);
4292
4292
  var allContainers = parent_1.querySelectorAll(':scope > .e-group-body > .e-rule-list > [class*="-container"]');
4293
4293
  var topLevelGroups = parent_1.querySelectorAll(':scope > .e-group-body > .e-rule-list > .e-group-container');
4294
- if (topLevelGroups.length > 0 && groupID !== 'querybuilder_group0' && !(this.isAngular && groupID === 'ej2-querybuilder_0_group0')) {
4294
+ if (topLevelGroups.length > 0 && groupID !== 'querybuilder_group0' && !(this.isAngular && groupID === this.initialID + '_group0')) {
4295
4295
  var lastGroupIndex = -1;
4296
4296
  var lastGroup = topLevelGroups[topLevelGroups.length - 1];
4297
4297
  for (var i = 0; i < allContainers.length; i++) {
@@ -4635,6 +4635,7 @@ var QueryBuilder = /** @__PURE__ @class */ (function (_super) {
4635
4635
  };
4636
4636
  QueryBuilder.prototype.preRender = function () {
4637
4637
  this.element.id = this.element.id || getUniqueID('ej2-querybuilder');
4638
+ this.initialID = this.element.id;
4638
4639
  this.defaultLocale = {
4639
4640
  StartsWith: 'Starts With',
4640
4641
  DoesNotStartWith: 'Does Not Start With',
@@ -5442,6 +5443,7 @@ var QueryBuilder = /** @__PURE__ @class */ (function (_super) {
5442
5443
  if (this.headerTemplate && isRoot) {
5443
5444
  this.isRoot = true;
5444
5445
  }
5446
+ this.clearQBTemplate();
5445
5447
  this.reset();
5446
5448
  this.groupIdCounter = 1;
5447
5449
  this.ruleIdCounter = 0;