Opened 7 years ago

Closed 7 years ago

#8616 closed bug (fixed)

Remote autocomplete example can leave pending request tracking out of sync.

Reported by: coling Owned by:
Priority: minor Milestone: 1.9.0
Component: ui.autocomplete Version: 1.8.21
Keywords: Cc:
Blocked by: Blocking:

Description

Hi,

Somewhat related to #6761 but a separate issue.

When copying the example for a remote with cache autocomplete, I realised that the response() function was only called with the most recent requests results. As it is the response() functions responsibility to decrement pending, this example can lead to pending never going back to 0 and the ui-autocomplete-loading class to be left on the input leading to UI problems.

There should be some mechanism to decrement the pending count and still permit this usage patter.

Change History (1)

comment:1 Changed 7 years ago by Scott González

Resolution: fixed
Status: newclosed

Autocomplete cache demo: Let the widget handle request synchronization. Fixes #8616 - Remote autocomplete example can leave pending request tracking out of sync.

Changeset: 5405a821b9d13daa11a2e66866fe8b16e7b68177

Note: See TracTickets for help on using tickets.