We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1e28040 commit af9864dCopy full SHA for af9864d
ui/jquery.ui.dialog.js
@@ -693,7 +693,10 @@ $.extend($.ui.dialog.overlay, {
693
if ($.ui.dialog.overlay.instances.length) {
694
$(document).bind($.ui.dialog.overlay.events, function(event) {
695
// stop events if the z-index of the target is < the z-index of the overlay
696
- return ($(event.target).zIndex() >= $.ui.dialog.overlay.maxZ);
+ // we cannot return true when we don't want to cancel the event (#3523)
697
+ if ($(event.target).zIndex() < $.ui.dialog.overlay.maxZ) {
698
+ return false;
699
+ }
700
});
701
}
702
}, 1);
0 commit comments