1
0
Fork 0
forked from fedi/mastodon

Fix scroll position in thread view reseting when closing a modal (#27350)

This commit is contained in:
Claire 2023-10-10 11:35:32 +02:00
parent 4262cfbe41
commit a1f7d2d19a

View file

@ -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;
}