Set scrolldown flag on tab changes in willUpdate instead of receiveProps
This commit is contained in:
parent
80efb750f9
commit
6a9942a655
File diff suppressed because one or more lines are too long
@ -8,13 +8,11 @@ const scrollBarWidth = measureScrollBarWidth();
|
||||
const listStyle = { padding: '7px 0', boxSizing: 'content-box' };
|
||||
|
||||
export default class MessageBox extends PureComponent {
|
||||
componentWillReceiveProps(nextProps) {
|
||||
componentWillUpdate(nextProps) {
|
||||
if (nextProps.tab !== this.props.tab) {
|
||||
this.bottom = true;
|
||||
}
|
||||
}
|
||||
|
||||
componentWillUpdate(nextProps) {
|
||||
if (nextProps.messages !== this.props.messages) {
|
||||
this.list.recomputeRowHeights();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user