mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-12-21 14:18:36 +00:00
Fix scroll handling with modals
This commit is contained in:
@@ -41,7 +41,7 @@ export default class Mastodon extends React.PureComponent {
|
||||
}
|
||||
|
||||
shouldUpdateScroll (_, { location }) {
|
||||
return !(location.state && location.state.mastodonModalOpen);
|
||||
return !(location.state?.mastodonModalKey);
|
||||
}
|
||||
|
||||
render () {
|
||||
|
||||
Reference in New Issue
Block a user