diff options
author | mathias.stenbom <mathias@stenbom.com> | 2012-11-19 09:06:36 -0500 |
---|---|---|
committer | Mike Sherov <mike.sherov@gmail.com> | 2012-11-19 09:06:50 -0500 |
commit | cf9fbce13931732dc4b06d491ef2a01c4921faf1 (patch) | |
tree | 6f255e726448f94a7fcff2d115da6758156b44bc /ui | |
parent | cc7df712cc4ca90f6d6db599c5ff91b690921581 (diff) | |
download | jquery-ui-cf9fbce13931732dc4b06d491ef2a01c4921faf1.tar.gz jquery-ui-cf9fbce13931732dc4b06d491ef2a01c4921faf1.zip |
Draggable: made handles work with complex markup. Fixes #8757 - Draggable: Resizable handle with inner element does not work, when its also draggable
Diffstat (limited to 'ui')
-rw-r--r-- | ui/jquery.ui.draggable.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/jquery.ui.draggable.js b/ui/jquery.ui.draggable.js index dad5af074..b982ac6be 100644 --- a/ui/jquery.ui.draggable.js +++ b/ui/jquery.ui.draggable.js @@ -70,7 +70,7 @@ $.widget("ui.draggable", $.ui.mouse, { var o = this.options; // among others, prevent a drag on a resizable-handle - if (this.helper || o.disabled || $(event.target).is('.ui-resizable-handle')) { + if (this.helper || o.disabled || $(event.target).closest('.ui-resizable-handle').length > 0) { return false; } |