Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
80a2dce9
Unverified
Commit
80a2dce9
authored
Jan 29, 2020
by
Dominik Prokop
Committed by
GitHub
Jan 29, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Select: Fix direct usages of react-select to make the scroll great again (#21822)
parent
427629b4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletions
+3
-1
packages/grafana-ui/src/components/Forms/Select/SelectBase.tsx
+1
-1
packages/grafana-ui/src/components/Select/Select.tsx
+2
-0
No files found.
packages/grafana-ui/src/components/Forms/Select/SelectBase.tsx
View file @
80a2dce9
...
...
@@ -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
,
...
...
packages/grafana-ui/src/components/Select/Select.tsx
View file @
80a2dce9
...
...
@@ -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=
{
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment