Fixed scrolling issue that caused scroll to be locked to the bottom of a long dashboard, fixes #15712

This commit is contained in:
Torkel Ödegaard
2019-03-05 12:37:19 +01:00
parent 1711622eff
commit e6a83bf0e1

View File

@@ -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);
}
}