Select: Fix direct usages of react-select to make the scroll great again (#21822)

pull/21841/head
Dominik Prokop 5 years ago committed by GitHub
parent 427629b4d5
commit 80a2dce994
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      packages/grafana-ui/src/components/Forms/Select/SelectBase.tsx
  2. 2
      packages/grafana-ui/src/components/Select/Select.tsx

@ -229,6 +229,7 @@ export function SelectBase<T>({
onKeyDown,
menuShouldScrollIntoView: false,
renderControl,
captureMenuScroll: false,
};
// width property is deprecated in favor of size or className
@ -254,7 +255,6 @@ export function SelectBase<T>({
return (
<ReactSelectComponent
captureMenuScroll={false}
components={{
MenuList: SelectMenu,
Group: SelectOptionGroup,

@ -133,6 +133,7 @@ export class Select<T> extends PureComponent<LegacySelectProps<T>> {
{(onOpenMenuInternal, onCloseMenuInternal) => {
return (
<SelectComponent
captureMenuScroll={false}
classNamePrefix="gf-form-select-box"
className={selectClassNames}
components={selectComponents}
@ -226,6 +227,7 @@ export class AsyncSelect<T> extends PureComponent<AsyncProps<T>> {
{(onOpenMenuInternal, onCloseMenuInternal) => {
return (
<ReactAsyncSelect
captureMenuScroll={false}
classNamePrefix="gf-form-select-box"
className={selectClassNames}
components={{

Loading…
Cancel
Save