소스 검색

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개의 변경된 파일1개의 추가작업 그리고 5개의 파일을 삭제
  1. 1 5
      packages/grafana-ui/src/components/CustomScrollbar/CustomScrollbar.tsx

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