Fix opening/closing gifv sometimes making the timeline scroll

This commit is contained in:
Thibaut Girka authored and ThibG committed 2019-04-16 22:20:23 +02:00
1 parent f11ad4023c
commit fbec0edf08
3 files changed
+2 -7

No files matched your search

@@ -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;
}
}