Closed choyzer closed 2 years ago
@choyzer You will need also an id
field. Try to set that one up and see if it works.
@choyzer Update: you actually have 2 problems:
id
field for each elementname
field, this means that you will need to specify where to search, for example:
type Item = {
id: number
value: string
label: string
}
<ReactSearchAutocompletelabel
// you can specify multiple fields too if you need
fuseOptions={{ keys: ['label'] }}
/>
Try to change the Type to:
<ReactSearchAutocomplete<Item>/>
Put items with new format
The autoComplete is not working