Search and Top Navigation
#6849 closed bug (notabug)
Opened January 13, 2011 01:50AM UTC
Closed January 13, 2011 01:55AM UTC
Autocomplete does not handle a source callback as expected
Reported by: | elmariachi | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | 1.9.0 |
Component: | ui.autocomplete | Version: | 1.8.7 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
The documentation [says http://jqueryui.com/demos/autocomplete/] that a callback is accepted as a source.
However, if we simply pass a callback, autocomplete does not work. [Failure http://jsfiddle.net/vSdqE/2/].
If we call the callback ourselves and explicitly pass the array, then it works. [Success http://jsfiddle.net/vSdqE/1/].
Solution: callback should be called!
Attachments (0)
Change History (1)
Changed January 13, 2011 01:55AM UTC by comment:1
resolution: | → invalid |
---|---|
status: | new → closed |
The callback isn't supposed to return a value directly. Please read the full documentation or view one of the demos, such as the accent folding demo.