searchbox icon indicating copy to clipboard operation
searchbox copied to clipboard

renderNoSuggestion is shown before suggestion

Open SergeyRe opened this issue 3 years ago • 1 comments

<SearchBox id="search-component" dataField={[ 'name', 'name.autosuggest', 'name.delimiter', 'name.lang', 'name.search', 'name.synonyms' ]} placeholder="Поиск батареек по маркировке типоразмера" autosuggest={true} size={10} showVoiceSearch //sortBy='asc' autoFocus onValueSelected={(value, cause, source) => { return (document.location.href = /size/${source.slug}); }} renderNoSuggestion={() => ( <div> К сожалению база данных находится в фазе первичного накопления информации.Список доступных типоразмеров{" "} <a href="https://batteryhelp.ru/list">приведен тут:</a>{" "} </div> )} /> </SearchBase> in case of suggestions presented i get a nosuggestions rendering for a few moments before i get suggestions

SergeyRe avatar Mar 04 '21 03:03 SergeyRe

I'm not able to reproduce the issue. You can have a look at the working codesandbox here. Can you add more details?

SavvyShah avatar Jun 23 '22 12:06 SavvyShah