Skip to content

New Autocomplete component

Compare
Choose a tag to compare
@danieloprado danieloprado released this 21 Mar 14:53
· 44 commits to master since this release

Breaking changes

Change autocomplete component from react-autosuggest to react-select. Only the specific props will be affect.

<FieldAutocomplete
   label='Autocomplete'
   helperText='If you try to '
   name='autocomplete'
   value={model.autocompleteId}
   validation='required'
   options={[{ value: 1, label: 'Auto 1' }, { value: 2, label: 'Auto 2' }, { value: 3, label: 'Auto 3' }]}
   onChange={(v => this.setState({ model: { ...model, autocompleteId: v } }))}
 />