Opened 12 years ago

Closed 12 years ago

#6849 closed bug (notabug)

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!

Change History (1)

comment:1 Changed 12 years ago by Scott González

Resolution: invalid
Status: newclosed

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.

Note: See TracTickets for help on using tickets.