mirror of
https://github.com/mastodon/mastodon.git
synced 2026-09-09 17:47:19 -05:00
Fix scroll position in thread view reseting when closing a modal (#27350)
This commit is contained in:
@@ -619,7 +619,7 @@ class Status extends ImmutablePureComponent {
|
||||
|
||||
shouldUpdateScroll = (prevRouterProps, { location }) => {
|
||||
// Do not change scroll when opening a modal
|
||||
if (location.state?.mastodonModalKey && location.state?.mastodonModalKey !== prevRouterProps?.location?.state?.mastodonModalKey) {
|
||||
if (location.state?.mastodonModalKey !== prevRouterProps?.location?.state?.mastodonModalKey) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user