@syncfusion/ej2-querybuilder 22.2.8 → 22.2.11

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.
@@ -253,7 +253,7 @@ var QueryBuilder = /** @__PURE__ @class */ (function (_super) {
253
253
  this.columnSort();
254
254
  var columns = this.columns;
255
255
  for (var i = 0, len = columns.length; i < len; i++) {
256
- this.updateCustomOperator(columns[i], "initial");
256
+ this.updateCustomOperator(columns[i], 'initial');
257
257
  if (!columns[i].type) {
258
258
  if (columnKeys.indexOf(columns[i].field) > -1) {
259
259
  value = this.dataColl[0][columns[i].field];
@@ -382,7 +382,7 @@ var QueryBuilder = /** @__PURE__ @class */ (function (_super) {
382
382
  };
383
383
  QueryBuilder.prototype.updateCustomOperator = function (column, from) {
384
384
  if (column.operators) {
385
- if (!this.isLocale && from === "initial" && !isNullOrUndefined(this.isCustomOprCols)) {
385
+ if (!this.isLocale && from === 'initial' && !isNullOrUndefined(this.isCustomOprCols)) {
386
386
  this.isCustomOprCols.push(column.field);
387
387
  }
388
388
  var _loop_1 = function (j) {
@@ -1335,9 +1335,14 @@ var QueryBuilder = /** @__PURE__ @class */ (function (_super) {
1335
1335
  if (element.className.indexOf('e-radio') > -1) {
1336
1336
  // eslint-disable-next-line
1337
1337
  rbValue = parseInt(element.id.split('valuekey')[1], 0);
1338
- dropDownObj =
1339
- getComponent(closest(element, '.e-rule-container').querySelector('.e-filter-input'), 'dropdownlist');
1340
- this.selectedColumn = dropDownObj.getDataByValue(dropDownObj.value);
1338
+ if (this.fieldMode === 'Default') {
1339
+ dropDownObj = getComponent(closest(element, '.e-rule-container').querySelector('.e-filter-input'), 'dropdownlist');
1340
+ this.selectedColumn = dropDownObj.getDataByValue(dropDownObj.value);
1341
+ }
1342
+ else {
1343
+ dropDownObj = getComponent(closest(element, '.e-rule-container').querySelector('.e-filter-input'), 'dropdowntree');
1344
+ this.selectedColumn = this.getColumn(dropDownObj.value[0]);
1345
+ }
1341
1346
  if (this.selectedColumn.values) {
1342
1347
  value = this.selectedColumn.values[rbValue];
1343
1348
  }
@@ -3872,6 +3877,9 @@ var QueryBuilder = /** @__PURE__ @class */ (function (_super) {
3872
3877
  ruleId = this.element.id + '_' + elem;
3873
3878
  ruleElem = document.getElementById(ruleId);
3874
3879
  }
3880
+ if (isNullOrUndefined(ruleElem)) {
3881
+ return null;
3882
+ }
3875
3883
  var groupElem = closest(ruleElem, '.e-group-container');
3876
3884
  var rule = this.getParentGroup(groupElem);
3877
3885
  while (ruleElem.previousElementSibling !== null) {