Ticket #5106 (closed bug: worksforme)

Opened 3 years ago

Last modified 3 years ago

Wrong params in callback

Reported by: insekticid Owned by:
Priority: critical Milestone: 1.8
Component: ui.autocomplete Version: 1.8rc1
Keywords: Cc:
Blocking: Blocked by:

Description

When I want to access item params in callback function - object in object is given

Now

$('#ac_ajax').autocomplete({'select':function (event, item) { $("#country_code").val(item.item.id); }});

Patched

$('#ac_ajax').autocomplete({'select':function (event, item) { $("#country_code").val(item.id); }});

Attachments

autocomplete-callback-params.patch Download (875 bytes) - added by insekticid 3 years ago.

Change History

Changed 3 years ago by insekticid

comment:1 Changed 3 years ago by scott.gonzalez

  • Status changed from new to closed
  • Resolution set to worksforme

This is functioning as intended and as documented.

comment:2 Changed 3 years ago by insekticid

Could you pls send me link to the documentation? Because here  http://jqueryui.com/demos/autocomplete/ is nothing about it

Note: See TracTickets for help on using tickets.