浏览代码

explore data source selector fix

Torkel Ödegaard 7 年之前
父节点
当前提交
5f8001689b
共有 2 个文件被更改,包括 2 次插入0 次删除
  1. 1 0
      public/app/core/components/Picker/SimplePicker.tsx
  2. 1 0
      public/app/features/explore/Explore.tsx

+ 1 - 0
public/app/core/components/Picker/SimplePicker.tsx

@@ -37,6 +37,7 @@ const SimplePicker: SFC<Props> = ({
       value={value}
       getOptionLabel={getOptionLabel}
       getOptionValue={getOptionValue}
+      menuShouldScrollIntoView={false}
       isSearchable={false}
       onChange={onSelected}
       options={options}

+ 1 - 0
public/app/features/explore/Explore.tsx

@@ -895,6 +895,7 @@ export class Explore extends React.PureComponent<ExploreProps, ExploreState> {
               <Select
                 classNamePrefix={`gf-form-select-box`}
                 isMulti={false}
+                menuShouldScrollIntoView={false}
                 isLoading={datasourceLoading}
                 isClearable={false}
                 className="gf-form-input gf-form-input--form-dropdown datasource-picker"