diff --git a/components/lib/datatable/DataTable.js b/components/lib/datatable/DataTable.js index 0eb6a6d111..1cbcc68b54 100644 --- a/components/lib/datatable/DataTable.js +++ b/components/lib/datatable/DataTable.js @@ -634,6 +634,8 @@ export const DataTable = React.forwardRef((props, ref) => { return; } + if (!props.reorderableColumns) return; + colReorderIconWidth.current = DomHandler.getHiddenElementOuterWidth(reorderIndicatorUpRef.current); colReorderIconHeight.current = DomHandler.getHiddenElementOuterHeight(reorderIndicatorUpRef.current);