Browse Source

Fix expanded statuses not always being scrolled into view (#21797)

closed-social-glitch-2
Claire 2 years ago
committed by GitHub
parent
commit
2d4d99f135
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      app/javascript/mastodon/features/status/index.js

+ 4
- 0
app/javascript/mastodon/features/status/index.js View File

@ -222,6 +222,10 @@ class Status extends ImmutablePureComponent {
this.props.dispatch(fetchStatus(nextProps.params.statusId));
}
if (nextProps.params.statusId && nextProps.ancestorsIds.size > this.props.ancestorsIds.size) {
this._scrolledIntoView = false;
}
if (nextProps.status && nextProps.status.get('id') !== this.state.loadedStatusId) {
this.setState({ showMedia: defaultMediaVisibility(nextProps.status), loadedStatusId: nextProps.status.get('id') });
}

Loading…
Cancel
Save