Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#6692 closed bug (fixed)

Autocomplete: ui-autocomplete-loading class not removed when Ajax request times out

Reported by: doerwalter Owned by:
Priority: minor Milestone: 1.8.7
Component: ui.autocomplete Version: 1.8.6
Keywords: Cc:
Blocked by: Blocking:

Description

When the autocomplete source function does an Ajax request with a timeout value, and the request exceeds the timeout limit, the ui-autocomplete-loading CSS class will never get removed from the input control.

Change History (5)

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

Status: newopen
Summary: ui-autocomplete-loading class not removed when Ajax request times outAutocomplete: ui-autocomplete-loading class not removed when Ajax request times out

comment:2 Changed 10 years ago by Scott González

Resolution: fixed
Status: openclosed

Autocomplete: Handle ajax errors and timeouts. Fixes #6692 - Autocomplete: ui-autocomplete-loading class not removed when Ajax request times out.

Changeset: 40135bb09130a56aabc0d185b62a597cb45df0dc

comment:3 Changed 10 years ago by doerwalter

Changeset 40135bb09130a56aabc0d185b62a597cb45df0dc fixes the problem for the simple case, i.e. when the source option is the ajax URL. However when the source options is not a string, but a function, the problem isn't fixed. I realize that it might be unfixable without any changes to the API, but at least there should be a way to cancel the autocomplete (e.g. by calling response(null)) and it should be documented that response *must* be called even in case of an error/timeout.

comment:4 Changed 10 years ago by Scott González

I've updated the docs.

comment:5 Changed 10 years ago by Scott González

Milestone: 1.91.8.7
Note: See TracTickets for help on using tickets.