@syncfusion/ej2-querybuilder 32.1.24 → 32.2.3

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.
@@ -4237,10 +4237,13 @@ var QueryBuilder = /** @__PURE__ @class */ (function (_super) {
4237
4237
  not = this.updatedRule.not;
4238
4238
  isLocked = this.updatedRule.isLocked;
4239
4239
  }
4240
- if (this.groupCloned) {
4240
+ if (this.groupCloned && this.target instanceof HTMLElement &&
4241
+ this.getGroup(this.target).rules.length > 1) {
4241
4242
  var parent_1 = this.element.querySelector('#' + groupID);
4242
4243
  var topLevelGroups = parent_1.querySelectorAll(':scope > .e-group-body > .e-rule-list > .e-group-container');
4243
- this.groupIndex = topLevelGroups.length > 1 ? topLevelGroups.length - 1 : 0;
4244
+ if (groupID !== 'querybuilder_group0') {
4245
+ this.groupIndex = topLevelGroups.length > 1 ? topLevelGroups.length - 1 : 0;
4246
+ }
4244
4247
  }
4245
4248
  if (this.groupIndex < 0) {
4246
4249
  if (this.enableNotCondition) {