searchbox
searchbox copied to clipboard
renderNoSuggestion is shown before suggestion
<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
I'm not able to reproduce the issue. You can have a look at the working codesandbox here. Can you add more details?