reactivesearch icon indicating copy to clipboard operation
reactivesearch copied to clipboard

autosuggestion not customizable in CategorySearch

Open nestedifsdotcom opened this issue 8 years ago • 1 comments

Issue Type: Bug

Platform: Web

Description:

i added onSuggestion event on CategorySearch but it still did not change the first 3 suggestions. How could we for exmaple change the "in all categories" text

<CategorySearch ... onSuggestion={suggestion => ({ label: ( <div> {suggestion._source.titre} dans: <span style={{ color: "dodgerblue", marginLeft: 5 }} > {suggestion.categorie} </span> </div> ), value: suggestion.titre })} /> Screenshots: reactive search

Reactivesearch version: 2.6.2

Browser: all

thank you for your support

nestedifsdotcom avatar Jul 14 '18 13:07 nestedifsdotcom

This is now possible with renderSuggestions prop. Please check the docs for custom suggestions.

divyanshu013 avatar Oct 01 '18 11:10 divyanshu013