forked from treehouse/mastodon
Updates height upon collapsing
parent
4bd7482a7a
commit
4fe45dda9a
|
@ -86,6 +86,10 @@ export default class Status extends ImmutablePureComponent {
|
||||||
return super.shouldComponentUpdate(nextProps, nextState);
|
return super.shouldComponentUpdate(nextProps, nextState);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
componentDidUpdate (prevProps, prevState) {
|
||||||
|
if (prevState.isCollapsed !== this.state.isCollapsed) this.saveHeight();
|
||||||
|
}
|
||||||
|
|
||||||
componentDidMount () {
|
componentDidMount () {
|
||||||
const node = this.node;
|
const node = this.node;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue