Skip to content

Commit

Permalink
Fix #2594: DataTable: Responsive broken in 7.2.0 (#2595)
Browse files Browse the repository at this point in the history
  • Loading branch information
FlipWarthog authored Feb 17, 2022
1 parent 8372022 commit 262533e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions components/lib/datatable/DataTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -1531,11 +1531,11 @@ export class DataTable extends Component {
componentDidMount() {
this.setState({ attributeSelector: UniqueComponentId() }, () => {
this.el.setAttribute(this.state.attributeSelector, '');
});

if (this.props.responsiveLayout === 'stack' && !this.props.scrollable) {
this.createResponsiveStyle();
}
if (this.props.responsiveLayout === 'stack' && !this.props.scrollable) {
this.createResponsiveStyle();
}
});

if (this.isStateful()) {
this.setState(this.restoreState(this.state));
Expand Down

0 comments on commit 262533e

Please sign in to comment.