mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Select: Fix direct usages of react-select to make the scroll great again (#21822)
This commit is contained in:
parent
427629b4d5
commit
80a2dce994
@ -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…
Reference in New Issue
Block a user