Merge pull request #15792 from grafana/fix-15712-scroll-issue

Fixed scrolling issue that caused scroll to be locked to bottom
This commit is contained in:
Torkel Ödegaard
2019-03-05 13:32:30 +01:00
committed by GitHub
@@ -42,11 +42,7 @@ export class CustomScrollbar extends Component<Props> {
const ref = this.ref.current;
if (ref && !isNil(this.props.scrollTop)) {
if (this.props.scrollTop > 10000) {
ref.scrollToBottom();
} else {
ref.scrollTop(this.props.scrollTop);
}
ref.scrollTop(this.props.scrollTop);
}
}