mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-12-13 07:49:29 +00:00
Updates height upon collapsing
This commit is contained in:
@@ -86,6 +86,10 @@ 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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user