mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Fixed scrolling issue that caused scroll to be locked to the bottom of a long dashboard, fixes #15712
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user