@syncfusion/ej2-multicolumn-combobox 27.1.48 → 27.2.2

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.
@@ -342,8 +342,10 @@ var MultiColumnComboBox = /** @__PURE__ @class */ (function (_super) {
342
342
  this.gridEle = this.createElement('div', { id: getUniqueID('grid'), className: MULTICOLUMNGRID });
343
343
  this.updateGroupByField();
344
344
  var sortOrder = this.sortOrder.toString().toLowerCase();
345
- // Set first column as primary key to avoid PRIMARY KEY MISSING warning.
346
- this.gridObj.columns[0].isPrimaryKey = true;
345
+ if (gridColumns.length > 0) {
346
+ // Set first column as primary key to avoid PRIMARY KEY MISSING warning.
347
+ this.gridObj.columns[0].isPrimaryKey = true;
348
+ }
347
349
  if (sortOrder !== 'none') {
348
350
  this.gridObj.sortSettings = { columns: [{ field: this.fields.text, direction: sortOrder === 'ascending' ?
349
351
  SortOrder.Ascending : SortOrder.Descending }] };