aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Bakaus <paul.bakaus@googlemail.com>2009-01-23 12:52:41 +0000
committerPaul Bakaus <paul.bakaus@googlemail.com>2009-01-23 12:52:41 +0000
commit3d4bc637e9bf7a4286f5ce1202477ad6fd10bf58 (patch)
tree9e073c1eb3b70c9a2c4009a9c4ab3f60d223dc2f
parenta84ce3f015f7c63179c4d3883fc9e000130d8a40 (diff)
downloadjquery-ui-3d4bc637e9bf7a4286f5ce1202477ad6fd10bf58.tar.gz
jquery-ui-3d4bc637e9bf7a4286f5ce1202477ad6fd10bf58.zip
core: the propagation for the mousedown has to be stopped in the mouse logic, otherwise causes much pain for nested widgets (fixes #3910)
-rw-r--r--ui/ui.core.js5
1 files changed, 5 insertions, 0 deletions
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;
},