Scroll detailed status into view, fixes #257

This commit is contained in:
Alex Gleason 2020-09-09 15:03:26 -05:00
parent 8c137b0c3c
commit fd971f053f
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7

View file

@ -418,7 +418,7 @@ class Status extends ImmutablePureComponent {
}
if (prevProps.status && ancestorsIds && ancestorsIds.size > 0) {
const element = this.node.querySelectorAll('.focusable')[ancestorsIds.size - 1];
const element = this.node.querySelector('.detailed-status');
window.requestAnimationFrame(() => {
element.scrollIntoView(true);