#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 12 years ago by
Status: | new → open |
---|---|
Summary: | ui-autocomplete-loading class not removed when Ajax request times out → Autocomplete: ui-autocomplete-loading class not removed when Ajax request times out |
comment:2 Changed 12 years ago by
Resolution: | → fixed |
---|---|
Status: | open → closed |
comment:3 Changed 12 years ago by
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:5 Changed 12 years ago by
Milestone: | 1.9 → 1.8.7 |
---|
Autocomplete: Handle ajax errors and timeouts. Fixes #6692 - Autocomplete: ui-autocomplete-loading class not removed when Ajax request times out.