Problem/Motivation
If you use more than one form element with autocomplete on the page and want to use html elements like strong, then you can't because the "_renderItem" option applies only for first form element on the page. For the second and next items jquery ui use built in function to render them.
Proposed resolution
Apply this option to each element on page.
| Comment | File | Size | Author |
|---|---|---|---|
| #9 | Autocomplete.gif | 63.87 KB | droplet |
| #5 | testing-for-committer--do-not-test.patch | 1.34 KB | droplet |
| jquery-autocomplete-applies-renderItem-option-only-for-first-element.patch | 611 bytes | zviryatko |
Comments
Comment #2
andypostComment #3
droplet commentedComment #4
catchLooks sensible but until we have automated js testing it'd be good to ensure this is manually tested before it goes in.
Comment #5
droplet commented:)
Comment #6
catch#5 doesn't work for me.
The first autocomplete field on the page the matches are highlighted in red.
In the second, the match has the escaped, suggesting these are still not behaving consistently.
Comment #7
droplet commentedhave you remove caches ? I re-test again, no problems.
Comment #8
catchYes cleared all caches. If you can re-test and post a screenshot that'd help.
Comment #9
droplet commentedWell, make you a GIF. If you're Chrome users, you should try Private mode or close it completely. As I known Chrome sometimes failed on clean caches.

Comment #10
droplet commented@catch,
maybe you can provide a screenshot to help us understand your problem ?
Comment #11
catchNo that's OK, I'll assume it's an issue on my end.
Comment #13
andypostback rtbc
Comment #17
catchCommitted/pushed to 8.2.x and cherry-picked to 8.1.x. Thanks!