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