diff --git a/src/components/datatable/DataTable.js b/src/components/datatable/DataTable.js index 6e906d5fa2..7223385757 100644 --- a/src/components/datatable/DataTable.js +++ b/src/components/datatable/DataTable.js @@ -233,6 +233,10 @@ export class DataTable extends Component { this.onColumnDrop = this.onColumnDrop.bind(this); this.onVirtualScroll = this.onVirtualScroll.bind(this); this.frozenSelectionMode = null; + + if (this.props.reorderableColumns && !this.props.children.every(it => it.columnKey)) { + console.warn('Omitting columnKey property of Column child in a column reorderable DataTable may imply in duplication of the Columns if they have the same field.') + } } getFirst() {