Skip to main content

Search and Top Navigation

#6787 closed bug (worksforme)

Opened December 28, 2010 06:18PM UTC

Closed October 16, 2012 03:03PM UTC

Jquery UI dialog breaks hooked up change events when the dialog closes - IE only - Dialog must be Modal

Reported by: DannyStaten Owned by:
Priority: minor Milestone: 1.10.0
Component: ui.dialog Version: 1.8.7
Keywords: modal Cc:
Blocked by: Blocking:
Description

With this JS on an appropriate web form's document ready function I can demonstrate a very frustrating issue that is happening for me only in IE. If the modal options are set to modal:false the problem goes away.

$("select[id$='ddlCountry']").live("change", function (e)

{

alert("event fired!");

});

var upDialogOptions = {

autoOpen: false,

modal: true,

height: 500,

width: 650

};

$("#uploadForm").dialog(upDialogOptions);

The select's change event fires just fine so long as the modal has not been closed. Once that modal closes, that change event is completely lost.

It is actually happening for all dropdowns with a .live("change" wired event. Frustrating to say the least.

Attachments (0)
Change History (3)

Changed September 07, 2011 12:51PM UTC by scottgonzalez comment:1

keywords: → modal

Changed October 11, 2012 02:47PM UTC by scottgonzalez comment:2

milestone: 1.9.01.10.0

Changed October 16, 2012 03:03PM UTC by tj.vantoll comment:3

resolution: → worksforme
status: newclosed

This works for me with the latest jQuery (http://jsfiddle.net/tj_vantoll/vpevE/2/) as well as with jQuery UI 1.8.7 and jQuery 1.4.4 (http://jsfiddle.net/tj_vantoll/vpevE/).