Skip to content

Commit 0f384f9

Browse files
mlistRef define control
1 parent b250e55 commit 0f384f9

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/MessageList/MessageList.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ export class MessageList extends Component {
3131
}
3232

3333
componentWillReceiveProps() {
34+
if (!this.mlistRef)
35+
return;
3436
this.setState({
3537
scrollBottom: this.getBottom(this.mlistRef),
3638
});

0 commit comments

Comments
 (0)