appbaseio / reactivesearch

Search UI components for React and Vue
https://opensource.appbase.io/reactivesearch
Apache License 2.0
4.9k stars 466 forks source link

DataSearch.JS capability to override/replace words in text autocomplete results #339

Closed preritmohan closed 6 years ago

preritmohan commented 6 years ago

Issue Type: Bug

Platform: Reactivesearch Web

Description: In DataSearch.js I need to make certain words in autocomplete for results to be in uppercase. I did some manipulation to replace words but the build fails and cannot minify DataSearch.js and the app does not work in IE.

Screenshots: For ex. if I type leed in search box all the autocomplete results come back with leed in small. Need to capitalize LEED in all occurrences in autosuggest.

Minimal reproduction of the problem with instructions:

Reactivesearch version: 5.7+

Browser: [all | Chrome XX | Firefox XX | Edge XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]

Anything else:

vaibhav-groupten commented 6 years ago

+1

siddharthlatest commented 6 years ago

@preritmohan How are you doing this: via the onSuggestion prop or some other way?

Do you see any error logs in the browser when you use onSuggestion?

What version of IE does your app not work on?

preritmohan commented 6 years ago

Hi @siddharthlatest. I had done via some custom logic. Totally missed the onSuggestion prop. I was able to achieve it by onSuggestion prop. Thanks!