tbleckert / react-select-search

⚡️ Lightweight select component for React
https://react-select-search.vercel.app
MIT License
679 stars 147 forks source link

Problem with search #28

Closed DDushkin closed 5 years ago

DDushkin commented 5 years ago

Hi, in your documentation you said: /**

tbleckert commented 5 years ago

Hi @DDushkin , sorry for the late reply!

You are on the right path, you just need to configure the search options. You can pass a fuse configuration object like so:

const fuse = {
    keys: ['name', 'address'],
    threshold: 0.3,
};

<SelectSearch fuse={fuse} options={...} />
DDushkin commented 5 years ago

Thank you! It works now :)

tbleckert commented 5 years ago

@DDushkin Glad to hear it!