Fix opening/closing gifv sometimes making the timeline scroll
This commit is contained in:
parent
f11ad4023c
commit
fbec0edf08
3 changed files with 2 additions and 7 deletions
|
@ -40,7 +40,7 @@ export default class ModalRoot extends React.PureComponent {
|
|||
this.setState({ revealed: false });
|
||||
}
|
||||
if (!nextProps.children && !!this.props.children) {
|
||||
this.activeElement.focus();
|
||||
this.activeElement.focus({ preventScroll: true });
|
||||
this.activeElement = null;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue