aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.draggable.js
diff options
context:
space:
mode:
authorSteven Luscher <jquerycla@steveluscher.com>2013-05-02 12:07:34 -0700
committerMike Sherov <mike.sherov@gmail.com>2013-06-19 08:38:57 -0400
commitbca3e058e89bf40806170149b8029dfe52644248 (patch)
tree6a9795099c8798f47489c2a441de477a71536afa /ui/jquery.ui.draggable.js
parent91b7b9f9ab2e5baa31e37f34600457599409e161 (diff)
downloadjquery-ui-bca3e058e89bf40806170149b8029dfe52644248.tar.gz
jquery-ui-bca3e058e89bf40806170149b8029dfe52644248.zip
Clicking on a draggable anchor without moving it should make it the active element (Fixes #8399).
Diffstat (limited to 'ui/jquery.ui.draggable.js')
-rw-r--r--ui/jquery.ui.draggable.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/ui/jquery.ui.draggable.js b/ui/jquery.ui.draggable.js
index bf90d349b..9ee858725 100644
--- a/ui/jquery.ui.draggable.js
+++ b/ui/jquery.ui.draggable.js
@@ -263,6 +263,9 @@ $.widget("ui.draggable", $.ui.mouse, {
$.ui.ddmanager.dragStop(this, event);
}
+ // The interaction is over; whether or not the click resulted in a drag, focus the element
+ this.element.focus();
+
return $.ui.mouse.prototype._mouseUp.call(this, event);
},