1
0
mirror of https://github.com/funamitech/mastodon synced 2024-12-03 01:09:08 +09:00

Updates height upon collapsing

This commit is contained in:
kibigo! 2017-06-21 20:10:11 -07:00 committed by beatrix-bitrot
parent 4bd7482a7a
commit 4fe45dda9a

View File

@ -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;