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

Model Does not update if user submits before searchThrottleTime expires #76

Open
oaabhilash opened this issue Dec 19, 2016 · 1 comment
Assignees
Labels

Comments

@oaabhilash
Copy link

In a scenario where the Advanced Search Box is accompanied by a “Execute Search” button, if the user enters some string in to a search parameter and clicks the “Execute Search” button before the searchThrottleTime expires then the model used for searching will not be the same as that entered by the user.
Proposed Solution
As a temporary solution to support the current application, I extracted out the changeBuffer array as a separate factory and provided a flushBuffer() method so that the application controller can take it as a dependency and call it to flush the buffer before using the model for searching.
Please see the attached code.

Any comments are appreciated. [Hope I didn’t miss an obvious alternate solution]
AdvancedSearchBoxModified.txt

@dnauck dnauck added the question label Nov 9, 2017
@dnauck dnauck self-assigned this Nov 9, 2017
@dnauck
Copy link
Owner

dnauck commented Nov 9, 2017

Hi @oaabhilash ,

i would suggest to set searchThrottleTime to 0.

Does this work for you?

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

No branches or pull requests

2 participants