Переглянути джерело

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

Fixed scrolling issue that caused scroll to be locked to bottom
Torkel Ödegaard 6 роки тому
батько
коміт
7f283bdfb9

+ 1 - 5
packages/grafana-ui/src/components/CustomScrollbar/CustomScrollbar.tsx

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