alsoscotland / react-super-select

MIT License
95 stars 33 forks source link

customFilterFunction #31

Closed hmeerlo closed 9 years ago

hmeerlo commented 9 years ago

Hi,

your component looks pretty nice. But I would like to use the customFilterFunction but how would my custom filter know what to filter on if the input handling is completely handled by ReactSuperSelect. I only get the option as an parameter, but not the search text.

/Herman

alsoscotland commented 9 years ago

@hmeerlo Thanks for filing the issue. My apologies for the late reply, I wasn't working over the holiday weekend. Looks like an oversight on my part. I will get a fix in and tag a new version

alsoscotland commented 9 years ago

@hmeerlo You should have access to the searchString if you install v0.1.18 https://github.com/alsoscotland/react-super-select/tree/v0.1.18 Thanks Again!

hmeerlo commented 9 years ago

Thanks, I will give it a try.