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

th-downstream
Claire 1 year ago committed by GitHub
parent 1a2a4c389f
commit 9d1c3d0678
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -619,7 +619,7 @@ class Status extends ImmutablePureComponent {
shouldUpdateScroll = (prevRouterProps, { location }) => { shouldUpdateScroll = (prevRouterProps, { location }) => {
// Do not change scroll when opening a modal // 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; return false;
} }

Loading…
Cancel
Save