Commit 80a2dce9 by Dominik Prokop Committed by GitHub

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

parent 427629b4
......@@ -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={{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment