#9969 closed bug (duplicate)
ui.autocomplete unaccommodated a clear method expressly.
Reported by: | Chiether | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | none |
Component: | ui.autocomplete | Version: | 1.10.4 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
I want to be accommodated and need provide clear method.
_searchTimeout says only search if the value has changed in comment.
but remain in this.term when change with script, or without key-down.
sample: http://jsfiddle.net/TF3YZ/1/
Change History (6)
comment:2 Changed 9 years ago by
yes, we can clear that use this code.
$("#autocomplete").val(""); $("#autocomplete").autocomplete("search", "");
but search methods be hardly a satisfactory settlement. Because it won't search and wasteful load and response.
I preferred this one.
$("#autocomplete").autocomplete("clear");
comment:4 Changed 9 years ago by
Replying to scott.gonzalez:
Scott, thanks find kinda looks a like ticket. But I can't go along with #7434.
7434 says 'Selected Text Trigger Usability' and 'trigger _search when get focus back.' but this is 'Implement clear method', NOT TRIGGER.
By the way... I try patched 7434 but its unresolved.
- focus-in -> show all
- input text-box a letter 'a' -> show filtered
- focus-out and press clear button -> clear text-box
- focus-in -> show all
- input text-box a letter 'a' -> show all (NOT FILTERED!)
Okay, I try coding and make pull request(but maybe it a little later, because busy work).
and, This is positive continue and change to #7434 ?
comment:5 follow-up: 6 Changed 9 years ago by
You don't actually care about a clear method. You care that the autocomplete searches when it should. If you insist these are separate issues, I can reclose as won't fix, because we won't add a clear method.
comment:6 Changed 9 years ago by
Replying to scott.gonzalez:
You don't actually care about a clear method. You care that the autocomplete searches when it should.
I don't feel a need reopen and see what make no case for redundantly searches, considering its a low frequency of operation.
Scott, thanks your replying. *waves*