machineboy2045 / angular-selectize

angular-selectize
MIT License
201 stars 115 forks source link

autocomplete doesn't work with other value than "text" & "value" #152

Open adrienbourgeois opened 8 years ago

adrienbourgeois commented 8 years ago

config:

{ ..., valueField: 'id', labelField: 'title', ... }

This config breaks the autocomplete (all the options disappear from the dropdown as soon as you type something).

It only works with the default config:

{ ..., valueField: 'value', labelField: 'text', ... }
jarnoan commented 7 years ago

Try defining also searchField:

{ ..., valueField: 'id', labelField: 'title', searchField: ['title'], ... }