Closed OmniscienceAcademy closed 2 years ago
@OmniscienceAcademy Hello! This is how it's supposed to work. The search happens when you are typing and return is used to select one of the results. If you hide the results and hit return nothing will happen.
Ah, this is annoying. Because the true search takes a lot of time, even if I can generate suggestions pretty quickly.
I want to do the true search if and only if the user press enter or click on the icon. But If I understand correctly, this is not possible right now?
@OmniscienceAcademy Yes, you are correct, it's not possible at the moment.
@OmniscienceAcademy I could add a flag like alwaysDisplayResults
that will prevent the list of results from disappearing. How does that sound?
Closed because the request had no reply and it seems like only one user has the issue. In case more people need this I can add the feature.
alwaysDisplayResults please add this it make sense in the case from api hit @sickdyd
``Describe the bug When suggestions appear, and clicking away, to make the suggestion disappears, if I click in the search bar and press enter nothing happens
To Reproduce Steps to reproduce the behaviour:
Additional context Here is the code. I think my error come from the fact that I've put an onSearch in the handleOnSelect but not in the handleOnSearch. I do not want to put an onSeach in the handleOnsearch because otherwise, every time the user types something, he is interrupted by the research.
I'm pretty sure I've misunderstood something basic, but I can't see it. Can you help me? Thanks.