Opened 6 years ago

Closed 6 years ago

#15114 closed bug (notabug)

Bug in jquery autocomplete change event

Reported by: NarenGummadi Owned by:
Priority: minor Milestone: none
Component: ui.autocomplete Version:
Keywords: Cc:
Blocked by: Blocking:


If we change text in automcomplete control, it fires the change event successfully. However, the item is null which is an issue.

I saw bug# 8847 which is related without a solution. Is this resolved? If yes, please provide steps.

Change History (2)

comment:1 Changed 6 years ago by NarenGummadi

This was the fiddler link - from the Ticket# 8847, to reproduce the issue.

comment:2 Changed 6 years ago by Scott González

Resolution: notabug
Status: newclosed

This is working just fine. It's a really bad idea to use alert in test cases related to events. Right now in Chrome, I get an alert from the change event that says the value changed because the call to alert causes the field to blur before your event handler has finished. The item is null is change when an item has not been selected, which would always be the case if you're preventing the default action of select. Please read the comments in the other ticket and the documentation for these events.

Note: See TracTickets for help on using tickets.