@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.
@@ -308,8 +308,10 @@ let MultiColumnComboBox = class MultiColumnComboBox extends Component {
308
308
  this.gridEle = this.createElement('div', { id: getUniqueID('grid'), className: MULTICOLUMNGRID });
309
309
  this.updateGroupByField();
310
310
  const sortOrder = this.sortOrder.toString().toLowerCase();
311
- // Set first column as primary key to avoid PRIMARY KEY MISSING warning.
312
- this.gridObj.columns[0].isPrimaryKey = true;
311
+ if (gridColumns.length > 0) {
312
+ // Set first column as primary key to avoid PRIMARY KEY MISSING warning.
313
+ this.gridObj.columns[0].isPrimaryKey = true;
314
+ }
313
315
  if (sortOrder !== 'none') {
314
316
  this.gridObj.sortSettings = { columns: [{ field: this.fields.text, direction: sortOrder === 'ascending' ?
315
317
  SortOrder.Ascending : SortOrder.Descending }] };