Skip to content
Permalink
Browse files

Dialog: Changed overlay to use zIndex() to test which events to cance…

…l (fixed #4363 Datepicker Month/Year Dropdowns Not Working In Safari In A Dialog)
  • Loading branch information
btburnett3 committed Jan 29, 2010
1 parent 76f7e83 commit 58a3a99e1e7ed9be36761baaaac3996ed645ea84
Showing with 2 additions and 2 deletions.
  1. +2 −2 ui/jquery.ui.dialog.js
@@ -600,8 +600,8 @@ $.extend($.ui.dialog.overlay, {
// handle $(el).dialog().dialog('close') (see #4065)
if ($.ui.dialog.overlay.instances.length) {
$(document).bind($.ui.dialog.overlay.events, function(event) {
var dialogZ = $(event.target).parents('.ui-dialog').css('zIndex') || 0;
return (dialogZ > $.ui.dialog.overlay.maxZ);
// stop events if the z-index of the target is <= the z-index of the overlay
return ($(event.target).zIndex() > $.ui.dialog.overlay.maxZ);
});
}
}, 1);

0 comments on commit 58a3a99

Please sign in to comment.
You can’t perform that action at this time.