@syncfusion/ej2-querybuilder 22.1.37 → 22.2.5

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.
@@ -668,7 +668,7 @@ let QueryBuilder = class QueryBuilder extends Component {
668
668
  placeholder: this.l10n.getConstant('SelectField'), showClearButton: false,
669
669
  popupHeight: ((this.columns.length > 5) ? height : 'auto'), changeOnBlur: false,
670
670
  change: this.changeField.bind(this), value: !isNullOrUndefined(ddlValue) ? [ddlValue] : null,
671
- open: this.popupOpen.bind(this, false)
671
+ open: this.popupOpen.bind(this, false), treeSettings: { expandOn: 'Click' }, select: this.onSelectField
672
672
  };
673
673
  if (this.fieldModel) {
674
674
  ddlField = Object.assign({}, ddlField, this.fieldModel);
@@ -1339,6 +1339,12 @@ let QueryBuilder = class QueryBuilder extends Component {
1339
1339
  }
1340
1340
  this.isFieldChange = false;
1341
1341
  }
1342
+ onSelectField(args) {
1343
+ if (args.itemData.hasChildren) {
1344
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
1345
+ this.showPopup();
1346
+ }
1347
+ }
1342
1348
  changeField(args) {
1343
1349
  if (args.isInteracted) {
1344
1350
  if (isNullOrUndefined(args.value)) {
@@ -1362,7 +1368,8 @@ let QueryBuilder = class QueryBuilder extends Component {
1362
1368
  }
1363
1369
  else {
1364
1370
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
1365
- ddtElem.value = args.oldValue[0];
1371
+ const result = this.getLabelFromColumn(args.oldValue[0]);
1372
+ ddtElem.value = result;
1366
1373
  }
1367
1374
  return;
1368
1375
  }