diff --git a/components/lib/datatable/DataTable.js b/components/lib/datatable/DataTable.js index 44682c5b82..517d68eba7 100644 --- a/components/lib/datatable/DataTable.js +++ b/components/lib/datatable/DataTable.js @@ -314,7 +314,10 @@ export const DataTable = React.forwardRef((props, ref) => { if (props.resizableColumns) { columnWidthsState.current = restoredState.columnWidths; tableWidthState.current = restoredState.tableWidth; - restoreColumnWidths(); + + if (!props.customRestoreState && !isCustomStateStorage()) { + restoreColumnWidths(); + } } if (props.reorderableColumns) {