@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.
@@ -4221,7 +4221,7 @@ let QueryBuilder = class QueryBuilder extends Component {
4221
4221
  const parent = this.element.querySelector('#' + groupID);
4222
4222
  const allContainers = parent.querySelectorAll(':scope > .e-group-body > .e-rule-list > [class*="-container"]');
4223
4223
  const topLevelGroups = parent.querySelectorAll(':scope > .e-group-body > .e-rule-list > .e-group-container');
4224
- if (topLevelGroups.length > 0 && groupID !== 'querybuilder_group0' && !(this.isAngular && groupID === 'ej2-querybuilder_0_group0')) {
4224
+ if (topLevelGroups.length > 0 && groupID !== 'querybuilder_group0' && !(this.isAngular && groupID === this.initialID + '_group0')) {
4225
4225
  let lastGroupIndex = -1;
4226
4226
  const lastGroup = topLevelGroups[topLevelGroups.length - 1];
4227
4227
  for (let i = 0; i < allContainers.length; i++) {
@@ -4564,6 +4564,7 @@ let QueryBuilder = class QueryBuilder extends Component {
4564
4564
  }
4565
4565
  preRender() {
4566
4566
  this.element.id = this.element.id || getUniqueID('ej2-querybuilder');
4567
+ this.initialID = this.element.id;
4567
4568
  this.defaultLocale = {
4568
4569
  StartsWith: 'Starts With',
4569
4570
  DoesNotStartWith: 'Does Not Start With',
@@ -5367,6 +5368,7 @@ let QueryBuilder = class QueryBuilder extends Component {
5367
5368
  if (this.headerTemplate && isRoot) {
5368
5369
  this.isRoot = true;
5369
5370
  }
5371
+ this.clearQBTemplate();
5370
5372
  this.reset();
5371
5373
  this.groupIdCounter = 1;
5372
5374
  this.ruleIdCounter = 0;