Fix scroll handling with modals
This commit is contained in:
@ -508,8 +508,7 @@ class Status extends ImmutablePureComponent {
|
||||
}
|
||||
|
||||
shouldUpdateScroll = (prevRouterProps, { location }) => {
|
||||
if ((((prevRouterProps || {}).location || {}).state || {}).mastodonModalOpen) return false;
|
||||
return !(location.state && location.state.mastodonModalOpen);
|
||||
return !(prevRouterProps?.location?.state?.mastodonModalKey || location.state?.mastodonModalKey);
|
||||
}
|
||||
|
||||
render () {
|
||||
|
Reference in New Issue
Block a user