Updates height upon collapsing
This commit is contained in:
parent
58cdc55bd5
commit
32574a7e3c
1 changed files with 4 additions and 0 deletions
|
@ -86,6 +86,10 @@ export default class Status extends ImmutablePureComponent {
|
|||
return super.shouldComponentUpdate(nextProps, nextState);
|
||||
}
|
||||
|
||||
componentDidUpdate (prevProps, prevState) {
|
||||
if (prevState.isCollapsed !== this.state.isCollapsed) this.saveHeight();
|
||||
}
|
||||
|
||||
componentDidMount () {
|
||||
const node = this.node;
|
||||
|
||||
|
|
Loading…
Reference in a new issue