mirror of https://github.com/mastodon/mastodon
remove componentWillUnmount from status
This commit is contained in:
parent
c86b6eedc2
commit
53c623a999
|
@ -134,17 +134,6 @@ class Status extends ImmutablePureComponent {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
componentWillUnmount() {
|
|
||||||
if (this.node && this.props.getScrollPosition) {
|
|
||||||
const position = this.props.getScrollPosition();
|
|
||||||
if (position !== null && this.node.offsetTop < position.top) {
|
|
||||||
requestAnimationFrame(() => {
|
|
||||||
this.props.updateScrollBottom(position.height - position.top);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
handleToggleMediaVisibility = () => {
|
handleToggleMediaVisibility = () => {
|
||||||
this.setState({ showMedia: !this.state.showMedia });
|
this.setState({ showMedia: !this.state.showMedia });
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue