@syncfusion/ej2-querybuilder 27.1.52 → 27.1.55

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.
@@ -312,7 +312,7 @@ var QueryBuilder = /** @__PURE__ @class */ (function (_super) {
312
312
  categories.push(columns[i].category);
313
313
  }
314
314
  if (!columns[i].operators ||
315
- (this.isLocale && this.isCustomOprCols.indexOf(columns[i].field) !== 0)) {
315
+ (this.isLocale && this.isCustomOprCols.indexOf(columns[i].field) === -1)) {
316
316
  columns[i].operators = this.customOperators[columns[i].type + 'Operator'];
317
317
  }
318
318
  }
@@ -352,8 +352,9 @@ var QueryBuilder = /** @__PURE__ @class */ (function (_super) {
352
352
  else {
353
353
  columns[i].category = this.l10n.getConstant('OtherFields');
354
354
  }
355
- this.updateCustomOperator(columns[i]);
356
- if (!columns[i].operators || this.isLocale) {
355
+ this.updateCustomOperator(columns[i], 'initial');
356
+ if (!columns[i].operators ||
357
+ (this.isLocale && this.isCustomOprCols.indexOf(columns[i].field) === -1)) {
357
358
  columns[i].operators = this.customOperators[columns[i].type + 'Operator'];
358
359
  }
359
360
  }