Skip to content

Commit

Permalink
Fix #3694: Update responsive style on props changes (#3697)
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware authored Nov 23, 2022
1 parent 8a4cea1 commit 78f3f7d
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 @@ -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) {
Expand Down

0 comments on commit 78f3f7d

Please sign in to comment.