]> source.dussan.org Git - jquery-ui.git/commitdiff
Dialog: Don't return true when we don't want to cancel events. Fixes #3523 - Dialog...
authorScott González <scott.gonzalez@gmail.com>
Fri, 27 Aug 2010 20:49:07 +0000 (16:49 -0400)
committerScott González <scott.gonzalez@gmail.com>
Fri, 27 Aug 2010 20:49:07 +0000 (16:49 -0400)
ui/jquery.ui.dialog.js

index 44f5cbbbc9ab264b1d08dacf96a031f87d291619..1f3bd60f09332b0d98a9b6a3ed814d237b951288 100644 (file)
@@ -693,7 +693,10 @@ $.extend($.ui.dialog.overlay, {
                                if ($.ui.dialog.overlay.instances.length) {
                                        $(document).bind($.ui.dialog.overlay.events, function(event) {
                                                // stop events if the z-index of the target is < the z-index of the overlay
-                                               return ($(event.target).zIndex() >= $.ui.dialog.overlay.maxZ);
+                                               // we cannot return true when we don't want to cancel the event (#3523)
+                                               if ($(event.target).zIndex() < $.ui.dialog.overlay.maxZ) {
+                                                       return false;
+                                               }
                                        });
                                }
                        }, 1);