Ticket #6221 (closed bug: fixed)
Autocomplete: Doesn't reset after Select when textbox cleared, if same letters typed in rapidly; source function not triggered in that case
|Reported by:||reidres||Owned by:|
Observed using IE 8. Setting: minLength: 2
I am using a single textbox / autocomplete to create a list. The list is handled outside of the textbox autocomplete functionality, except that I have autocomplete's Select functionality send it outside of textbox and autocomplete.
I am returning false from the Select function. And within the Select function I am clearing the textbox (setting to "").
Imagine I want to select John Smith the first time and John Doe the second time. I type in "jo" and the source function is triggered. I then select John Smith. It goes fine. The Select function is triggered and clears the textbox. Then I again type in "jo" with a fast typing speed. In this case the source function is not triggered. If instead I type in "jo" with a slow typing speed, the source function is triggered. If I instead type in "su" or any other two letters at a fast or slow speed, the source function is triggered.
I am working around this by putting my initializing source and Select functions in a reset function and in my Select function I am using the AutoComplete destroy method and then calling my reset function.
Maybe this is not a bug but I am submitting it in case it is.
- Status changed from new to closed
- Summary changed from Doesn't reset after Select when textbox cleared, if same letters typed in rapidly; source function not triggered in that case to Autocomplete: Doesn't reset after Select when textbox cleared, if same letters typed in rapidly; source function not triggered in that case
- Resolution set to fixed
- Milestone changed from TBD to 1.9