furqanZafar / react-selectize

http://furqanzafar.github.io/react-selectize/
Apache License 2.0
703 stars 138 forks source link

How to search using fields other than option array #215

Open aniyanm opened 5 years ago

aniyanm commented 5 years ago

Below is my user array. [{name:'joe',id:1, email:'joe@example.com'}, {name:'zoya',id:2, email:'zoya@example.com'}, {name:'kim',id:3, email:'kim@example.com'}, {name:'mark',id:4, email:'mark@example.com'}]

I am using the name and id field as label and value respectively in my multi-select option array. When I search the name it works fine, but I would also like to search using email as well. So is there any way I can achieve the same?

Thanks in advance.

aniyanm commented 5 years ago

kind of lost here... plz help...