When website has a lot of users the autocomplete becomes slow.
Each keyup sends an ajax request and requests for less letters can take longer than requests sent for more letters.
It results in the dropdown replaced with the older suggestions.
I think we need to cancel the requests when we have new ones.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

james_kerrigan created an issue. See original summary.

artem_sylchuk’s picture

Status: Active » Needs review
FileSize
1.09 KB

This sets the 50ms timeout for the input and cancels it if user continues to type.

alt.dev’s picture

Version: 8.x-1.x-dev » 8.x-2.x-dev
FileSize
1.08 KB

Adapted the patch for version 2.0 of the module.

artem_sylchuk’s picture

Status: Needs review » Fixed
Issue tags: +LutskCodeSprint2021

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.