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
6c32a4c0
Unverified
Commit
6c32a4c0
authored
Jan 28, 2020
by
Dominik Prokop
Committed by
GitHub
Jan 28, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Forms: Allow custom value creation in async select (#21759)
parent
1ad569c4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletions
+3
-1
packages/grafana-ui/src/components/Forms/Select/SelectBase.tsx
+3
-1
No files found.
packages/grafana-ui/src/components/Forms/Select/SelectBase.tsx
View file @
6c32a4c0
...
...
@@ -6,6 +6,8 @@ import { default as ReactSelect } from '@torkelo/react-select';
import
Creatable
from
'@torkelo/react-select/creatable'
;
// @ts-ignore
import
{
default
as
ReactAsyncSelect
}
from
'@torkelo/react-select/async'
;
// @ts-ignore
import
{
default
as
AsyncCreatable
}
from
'@torkelo/react-select/async-creatable'
;
import
{
Icon
}
from
'../../Icon/Icon'
;
import
{
css
,
cx
}
from
'emotion'
;
...
...
@@ -243,7 +245,7 @@ export function SelectBase<T>({
// Instead of having AsyncSelect, as a separate component we render ReactAsyncSelect
if
(
loadOptions
)
{
ReactSelectComponent
=
ReactAsyncSelect
;
ReactSelectComponent
=
allowCustomValue
?
AsyncCreatable
:
ReactAsyncSelect
;
asyncSelectProps
=
{
loadOptions
,
defaultOptions
,
...
...
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