diff --git a/components/lib/datatable/DataTable.js b/components/lib/datatable/DataTable.js index 44682c5b82..1967d66c31 100644 --- a/components/lib/datatable/DataTable.js +++ b/components/lib/datatable/DataTable.js @@ -1329,7 +1329,7 @@ export const DataTable = React.forwardRef((props, ref) => { if (props.responsiveLayout === 'stack' && !props.scrollable) { createResponsiveStyle(); } - }, [props.responsiveLayout]); + }, [props.responsiveLayout, props.scrollable]); useUpdateEffect(() => { if (props.globalFilter) {