Skip to main content

Search and Top Navigation

#15114 closed bug (notabug)

Opened December 08, 2016 12:20PM UTC

Closed December 09, 2016 12:11AM UTC

Bug in jquery autocomplete change event

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

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.

Attachments (0)
Change History (2)

Changed December 08, 2016 12:21PM UTC by NarenGummadi comment:1

This was the fiddler link - http://jsfiddle.net/yJRnx/1/ from the Ticket# 8847, to reproduce the issue.

Changed December 09, 2016 12:11AM UTC by scottgonzalez comment:2

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.