Add value parameter to AutoComplete component
This commit is contained in:
parent
712f92d5f5
commit
f9d6024d6a
3 changed files with 4 additions and 3 deletions
2
dist/mcf-components.js
vendored
2
dist/mcf-components.js
vendored
File diff suppressed because one or more lines are too long
2
dist/mcf-components.js.map
vendored
2
dist/mcf-components.js.map
vendored
File diff suppressed because one or more lines are too long
|
@ -21,9 +21,10 @@ export default function MCF_Autocomplete (props) {
|
|||
return (
|
||||
<Autocomplete
|
||||
id={params.id} // string
|
||||
value={params.value} // string
|
||||
value={params.value} // an option from params.options
|
||||
style={{width: params.width}} // number
|
||||
options={params.options} // options to select
|
||||
defaultValue={params.defaultValue} // an option from params.options
|
||||
getOptionLabel={option => option.key}
|
||||
onChange={handleChange}
|
||||
renderInput={parameters => <TextField
|
||||
|
|
Loading…
Reference in a new issue