mirror of
https://framagit.org/tykayn/mastodon.git
synced 2023-08-25 08:33:12 +02:00
Updates height upon collapsing
This commit is contained in:
parent
4bd7482a7a
commit
4fe45dda9a
@ -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…
x
Reference in New Issue
Block a user