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

Add option for delay between searches #28

Merged
merged 2 commits into from
Sep 2, 2022
Merged

Conversation

Sorc96
Copy link
Contributor

@Sorc96 Sorc96 commented Sep 2, 2022

A new option named searchDelay has been added. The first search is triggered immediately to keep the first feedback as fast as possible. Afterwards, search is performed each time the timeout finishes.

Also added condition that checks if the search query has changed before performing the search. This prevents requests being triggered as a result of pressing keys that do not change the query (like arrow keys).

closes #27

@Trekky12
Copy link
Collaborator

Trekky12 commented Sep 2, 2022

Thank you very much for your contribution! :-)

@Trekky12 Trekky12 merged commit 7a8b9d4 into jstable:master Sep 2, 2022
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

Successfully merging this pull request may close these issues.

Search delay
2 participants