Opened 12 years ago
Closed 12 years ago
#7360 closed bug (notabug)
Multiple autocomplete fields lose custom suggestions list display
Reported by: | scikidus | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | 1.9.0 |
Component: | ui.autocomplete | Version: | 1.8.12 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
If autocomplete is called on multiple fields, and the optional custom display code is added (almost verbatim from the demo), then the formatting appears in the first field, but all following fields use the default formatting.
See here: http://jsfiddle.net/faLAr/15/ and hit the down arrow while focused on the different fields. They should all give suggestions in the two line format, yet only the first one does.
Note: See
TracTickets for help on using
tickets.
.data() only returns the instance for the first item, you'll need to do that inside a .each().