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