Fix scroll handling with modals

This commit is contained in:
Claire
2021-07-13 11:07:16 +02:00
parent 6e3d5cbca2
commit 99f28c17de
5 changed files with 5 additions and 8 deletions

View File

@@ -147,7 +147,7 @@ class StatusActionBar extends ImmutablePureComponent {
handleOpen = () => {
let state = {...this.context.router.history.location.state};
if (state.mastodonModalOpen) {
if (state.mastodonModalKey) {
this.context.router.history.replace(`/statuses/${this.props.status.get('id')}`, { mastodonBackSteps: (state.mastodonBackSteps || 0) + 1 });
} else {
state.mastodonBackSteps = (state.mastodonBackSteps || 0) + 1;