Skip to content

Commit

Permalink
Fix #3694: Update responsive style on props changes
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware committed Nov 23, 2022
1 parent 8a4cea1 commit 08fbe1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/lib/datatable/DataTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 08fbe1e

Please sign in to comment.