Commit 7f283bdf by Torkel Ödegaard Committed by GitHub

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

Fixed scrolling issue that caused scroll to be locked to bottom
parents ff7eaced e6a83bf0
...@@ -42,13 +42,9 @@ export class CustomScrollbar extends Component<Props> { ...@@ -42,13 +42,9 @@ export class CustomScrollbar extends Component<Props> {
const ref = this.ref.current; const ref = this.ref.current;
if (ref && !isNil(this.props.scrollTop)) { if (ref && !isNil(this.props.scrollTop)) {
if (this.props.scrollTop > 10000) {
ref.scrollToBottom();
} else {
ref.scrollTop(this.props.scrollTop); ref.scrollTop(this.props.scrollTop);
} }
} }
}
componentDidMount() { componentDidMount() {
this.updateScroll(); this.updateScroll();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment