reactivesearch
reactivesearch copied to clipboard
autosuggestion not customizable in CategorySearch
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:

Reactivesearch version: 2.6.2
Browser: all
thank you for your support
This is now possible with renderSuggestions prop. Please check the docs for custom suggestions.