Opened 12 years ago
Closed 10 years ago
#6787 closed bug (worksforme)
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.
Change History (3)
comment:1 Changed 12 years ago by
Keywords: | modal added |
---|
comment:2 Changed 10 years ago by
Milestone: | 1.9.0 → 1.10.0 |
---|
comment:3 Changed 10 years ago by
Resolution: | → worksforme |
---|---|
Status: | new → closed |
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/).