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

This commit is contained in:
Dominik Prokop 2020-01-29 14:52:43 +01:00 committed by GitHub
parent 427629b4d5
commit 80a2dce994
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -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,

View File

@ -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={{