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

Modifying search on document view sends two requests to search endpoint #7291

Open
1 task
txau opened this issue Oct 3, 2024 · 1 comment
Open
1 task

Comments

@txau
Copy link
Collaborator

txau commented Oct 3, 2024

Describe the bug
When using the text search in document view, two requests are sent to the server when the search string is modified.

To Reproduce
Steps to reproduce the behavior:

  1. Go to document view
  2. Select the tab for text search
  3. Enter a string and hit enter
  4. In the network console two identical requests are sent to the search endpoint
  5. Hit enter again without changing the search string
  6. One request is sent
  7. Modify the string and hit enter
  8. Two requests are sent

Expected behavior
Only one request should be sent

Device (please select all that apply)

  • [ x] Desktop
  • Mobile

Browser
Firefox

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

No branches or pull requests

3 participants
@txau @RafaPolit and others