Ticket #8616 (closed bug: fixed)

Opened 8 months ago

Last modified 8 months ago

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:
Blocking: Blocked by:

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

comment:1 Changed 8 months ago by Scott González

  • Status changed from new to closed
  • Resolution set to fixed

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.