From bca3e058e89bf40806170149b8029dfe52644248 Mon Sep 17 00:00:00 2001 From: Steven Luscher Date: Thu, 2 May 2013 12:07:34 -0700 Subject: Clicking on a draggable anchor without moving it should make it the active element (Fixes #8399). --- ui/jquery.ui.draggable.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'ui/jquery.ui.draggable.js') 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); }, -- cgit v1.2.3