From 7424e65be6dc3160b6264a0cdeb9c3cb99d040a9 Mon Sep 17 00:00:00 2001 From: Kalin Krustev Date: Wed, 28 Sep 2022 09:22:00 +0200 Subject: [PATCH] fix #3376: DataTable crash during third party drag and drop handling --- components/lib/datatable/DataTable.js | 1 + 1 file changed, 1 insertion(+) diff --git a/components/lib/datatable/DataTable.js b/components/lib/datatable/DataTable.js index 0eb6a6d111..36861df82e 100644 --- a/components/lib/datatable/DataTable.js +++ b/components/lib/datatable/DataTable.js @@ -633,6 +633,7 @@ export const DataTable = React.forwardRef((props, ref) => { return; } + if (!props.reorderableColumns) return; colReorderIconWidth.current = DomHandler.getHiddenElementOuterWidth(reorderIndicatorUpRef.current); colReorderIconHeight.current = DomHandler.getHiddenElementOuterHeight(reorderIndicatorUpRef.current);