-
Notifications
You must be signed in to change notification settings - Fork 836
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
onChoicesLazyLoad
isn't raised every time the search string changes if it happens rapidly
#8419
Comments
…Changing Search Filter (#8498) Co-authored-by: OlgaLarina <olga.larina.dev@gmail.com>
@OlgaLarina Hi OlgaLarina, I reviewed your code changes, and I believe it's not advisable to remove isRunningLoadQuestionChoices directly, as it cannot guarantee that the later request will receive the response last. Suppose you send out Requests A and B sequentially, but there's a possibility that you might receive Responses B and A in that order, which could lead to new issues.
|
onChoicesLazyLoad
isn't raised every time the search string changes if it happens rapidly
No response here? I am sure there will have another issue by removing the |
Hello, @jiyuan12354 Olga, |
Description:
I am experiencing an issue with the onChoicesLazyLoad event in SurveyJS Dropdown. While the event handler is generally functioning as expected, I have noticed a problem when users rapidly and frequently update the search filter. In such cases, the onChoicesLazyLoad event does not always fire consistently, leading to search results that do not reflect the user's most recent input.
Code Example:
Issue Details:
This leads to the displayed choices not matching the user's latest input.
Expected Behavior:
The onChoicesLazyLoad event should fire for every change in the search filter, ensuring that the dropdown choices are always based on the latest input string.
Actual Behavior:
When the search filter is updated rapidly, some onChoicesLazyLoad events are not triggered, resulting in outdated search results.
Could you please investigate this issue and provide a solution to ensure that the onChoicesLazyLoad event fires correctly even with rapid input changes?
Thank you for your assistance.
The text was updated successfully, but these errors were encountered: