Просмотр исходного кода

explore data source selector fix

Torkel Ödegaard 7 лет назад
Родитель
Сommit
5f8001689b

+ 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"