Skip to content

Commit 0a20358

Browse files
sangeethababu9223kennylam
authored andcommitted
fix(datatable): is sortable console error (carbon-design-system#11568)
1 parent 0f161b1 commit 0a20358

File tree

1 file changed

+1
-1
lines changed
  • packages/carbon-web-components/src/components/data-table

1 file changed

+1
-1
lines changed

packages/carbon-web-components/src/components/data-table/table.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -820,7 +820,7 @@ class CDSTable extends HostListenerMixin(LitElement) {
820820
});
821821
const columns = [...this._tableHeaderRow.children];
822822
let sortDirection;
823-
let columnIndex = -1;
823+
let columnIndex = 0;
824824
columns.forEach((column, index) => {
825825
if (
826826
column.hasAttribute('sort-direction') &&

0 commit comments

Comments
 (0)