Skip to content

Commit

Permalink
Fixed #662 - Datatable scrollHeight can't be changed
Browse files Browse the repository at this point in the history
  • Loading branch information
mertsincan committed Apr 22, 2019
1 parent 98f7061 commit d3eb86a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/datatable/ScrollableView.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,11 @@ export class ScrollableView extends Component {
}
}

componentDidUpdate() {
componentDidUpdate(prevProps, prevState, snapshot) {
if (this.props.scrollHeight !== prevProps.scrollHeight) {
this.setScrollHeight();
}

if(!this.props.frozen) {
this.alignScrollBar();

Expand Down

0 comments on commit d3eb86a

Please sign in to comment.