@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.
@@ -4167,10 +4167,13 @@ let QueryBuilder = class QueryBuilder extends Component {
4167
4167
  not = this.updatedRule.not;
4168
4168
  isLocked = this.updatedRule.isLocked;
4169
4169
  }
4170
- if (this.groupCloned) {
4170
+ if (this.groupCloned && this.target instanceof HTMLElement &&
4171
+ this.getGroup(this.target).rules.length > 1) {
4171
4172
  const parent = this.element.querySelector('#' + groupID);
4172
4173
  const topLevelGroups = parent.querySelectorAll(':scope > .e-group-body > .e-rule-list > .e-group-container');
4173
- this.groupIndex = topLevelGroups.length > 1 ? topLevelGroups.length - 1 : 0;
4174
+ if (groupID !== 'querybuilder_group0') {
4175
+ this.groupIndex = topLevelGroups.length > 1 ? topLevelGroups.length - 1 : 0;
4176
+ }
4174
4177
  }
4175
4178
  if (this.groupIndex < 0) {
4176
4179
  if (this.enableNotCondition) {