Fix error on reloading status detail column (#5248)

th-downstream
K.SHIRAKASHI 7 years ago committed by Eugen Rochko
parent 856863fe2f
commit 31501f47c5

@ -242,8 +242,8 @@ export default class Status extends ImmutablePureComponent {
componentDidUpdate () { componentDidUpdate () {
const { ancestorsIds } = this.props; const { ancestorsIds } = this.props;
if (ancestorsIds) { if (ancestorsIds && ancestorsIds.size > 0) {
const element = this.node.querySelectorAll('.focusable')[this.props.ancestorsIds.size]; const element = this.node.querySelectorAll('.focusable')[ancestorsIds.size];
element.scrollIntoView(); element.scrollIntoView();
} }
} }

Loading…
Cancel
Save