Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

renderNoSuggestion is shown before suggestion #68

Open
SergeyRe opened this issue Mar 4, 2021 · 1 comment
Open

renderNoSuggestion is shown before suggestion #68

SergeyRe opened this issue Mar 4, 2021 · 1 comment

Comments

@SergeyRe
Copy link

SergeyRe commented Mar 4, 2021

<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

@SavvyShah
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants