Commit e6a83bf0 by Torkel Ödegaard

Fixed scrolling issue that caused scroll to be locked to the bottom of a long…

Fixed scrolling issue that caused scroll to be locked to the bottom of a long dashboard, fixes #15712
parent 1711622e
......@@ -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);
}
}
......
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