File tree 3 files changed +7890
-5672
lines changed
3 files changed +7890
-5672
lines changed Original file line number Diff line number Diff line change @@ -31,13 +31,16 @@ function GluuTypeAheadForDn({
31
31
lsize = 4 ,
32
32
rsize = 8 ,
33
33
paginate = false ,
34
- onSearch = ( ) => { } ,
35
- onPaginate = ( ) => { } ,
34
+ onSearch = ( ) => { } ,
35
+ onPaginate = ( ) => { } ,
36
36
maxResults = undefined ,
37
37
isLoading = false ,
38
38
placeholder = undefined ,
39
- onChange
39
+ onChange,
40
+ hideHelperMessage,
41
+ defaultSelected
40
42
} ) {
43
+
41
44
const { t } = useTranslation ( )
42
45
const [ open , setOpen ] = useState ( false )
43
46
@@ -92,13 +95,13 @@ function GluuTypeAheadForDn({
92
95
useCache = { false }
93
96
allowNew = { allowNew }
94
97
multiple = { true }
95
- defaultSelected = { value }
98
+ selected = { defaultSelected }
96
99
/>
97
- < ThemeProvider theme = { theme } >
100
+ { ! hideHelperMessage && < ThemeProvider theme = { theme } >
98
101
< Typography variant = "subtitle1" >
99
102
{ t ( 'placeholders.typeahead_holder_message' ) }
100
103
</ Typography >
101
- </ ThemeProvider >
104
+ </ ThemeProvider > }
102
105
</ Col >
103
106
</ FormGroup >
104
107
)
You can’t perform that action at this time.
0 commit comments