mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-12-15 00:38:27 +00:00
Fix scroll handling with modals
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user