Skip to content

Commit

Permalink
Fix primefaces#2594: DataTable: Responsive broken in 7.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
FlipWarthog committed Jan 21, 2022
1 parent 56f723e commit 41dc984
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 41dc984

Please sign in to comment.