From: Paul Bakaus Date: Fri, 23 Jan 2009 12:52:41 +0000 (+0000) Subject: core: the propagation for the mousedown has to be stopped in the mouse logic, otherwi... X-Git-Tag: 1.6rc6~133 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=3d4bc637e9bf7a4286f5ce1202477ad6fd10bf58;p=jquery-ui.git core: the propagation for the mousedown has to be stopped in the mouse logic, otherwise causes much pain for nested widgets (fixes #3910) --- diff --git a/ui/ui.core.js b/ui/ui.core.js index 88ee6bc9f..70fab6e26 100644 --- a/ui/ui.core.js +++ b/ui/ui.core.js @@ -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; },