@syncfusion/ej2-querybuilder 27.1.52 → 27.1.53

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.
@@ -266,7 +266,7 @@ let QueryBuilder = class QueryBuilder extends Component {
266
266
  categories.push(columns[i].category);
267
267
  }
268
268
  if (!columns[i].operators ||
269
- (this.isLocale && this.isCustomOprCols.indexOf(columns[i].field) !== 0)) {
269
+ (this.isLocale && this.isCustomOprCols.indexOf(columns[i].field) === -1)) {
270
270
  columns[i].operators = this.customOperators[columns[i].type + 'Operator'];
271
271
  }
272
272
  }
@@ -306,8 +306,9 @@ let QueryBuilder = class QueryBuilder extends Component {
306
306
  else {
307
307
  columns[i].category = this.l10n.getConstant('OtherFields');
308
308
  }
309
- this.updateCustomOperator(columns[i]);
310
- if (!columns[i].operators || this.isLocale) {
309
+ this.updateCustomOperator(columns[i], 'initial');
310
+ if (!columns[i].operators ||
311
+ (this.isLocale && this.isCustomOprCols.indexOf(columns[i].field) === -1)) {
311
312
  columns[i].operators = this.customOperators[columns[i].type + 'Operator'];
312
313
  }
313
314
  }