]> source.dussan.org Git - jquery-ui.git/commitdiff
core: the propagation for the mousedown has to be stopped in the mouse logic, otherwi...
authorPaul Bakaus <paul.bakaus@googlemail.com>
Fri, 23 Jan 2009 12:52:41 +0000 (12:52 +0000)
committerPaul Bakaus <paul.bakaus@googlemail.com>
Fri, 23 Jan 2009 12:52:41 +0000 (12:52 +0000)
ui/ui.core.js

index 88ee6bc9ffe796428d16bdd94b4c1109655578af..70fab6e26d4b6f63cd67b153b11d8b856102fdc9 100644 (file)
@@ -455,6 +455,11 @@ $.ui.mouse = {
                // anymore, so this fix is needed
                ($.browser.safari || event.preventDefault());
 
+               // was changed to return true in rev 1000 because that allows the
+               // event to bubble - however, exactly that causes much pain for
+               // nested widgets, so we call stopPropagation(). Building a work-
+               // around for the above is much easier.
+               event.stopPropagation();
                return true;
        },