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,11 +42,7 @@ export class CustomScrollbar extends Component<Props> { ...@@ -42,11 +42,7 @@ 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.scrollTop(this.props.scrollTop);
ref.scrollToBottom();
} else {
ref.scrollTop(this.props.scrollTop);
}
} }
} }
......
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