alsoscotland / react-super-select

MIT License
95 stars 33 forks source link

Enhancement : highlight searched input #69

Closed amgohan closed 8 years ago

amgohan commented 8 years ago

when searching, we hope that searched input will be highlighted.

You can tell me if you want any help, I can code with you :)

alsoscotland commented 8 years ago

@amgohan Always happy to receive help. Although I am not sure I want to add that to the default renderer. I would prefer to make just pass the search term to the customRendering function. A user supplied custom renderer could then handle the search highlight regular expression and markup

alsoscotland commented 8 years ago

https://github.com/alsoscotland/react-super-select/pull/71 adds the searchString as a 2nd parameter to the user-supplied custom template rendering function

alsoscotland commented 8 years ago

https://github.com/alsoscotland/react-super-select/tree/v0.5.0