Skip to content

Commit

Permalink
[Glitch] Fix scroll position in thread view reseting when closing a m…
Browse files Browse the repository at this point in the history
…odal

Port 9d1c3d0 to glitch-soc

Signed-off-by: Claire <[email protected]>
  • Loading branch information
ClearlyClaire committed Oct 10, 2023
1 parent 3735e6f commit 99c7283
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/javascript/flavours/glitch/features/status/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,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;
}

Expand Down

0 comments on commit 99c7283

Please sign in to comment.