From 075421d6d965c66055e47cde477f0ce2e23f1755 Mon Sep 17 00:00:00 2001 From: TJ VanToll Date: Fri, 15 Aug 2014 11:09:19 -0400 Subject: [PATCH] Draggable: Only blur the focused element if the event occurs on a handle Fixes #10527 --- ui/draggable.js | 36 +++++++++++++++++++++++------------- 1 file changed, 23 insertions(+), 13 deletions(-) diff --git a/ui/draggable.js b/ui/draggable.js index 3e427babe..3cae40f11 100644 --- a/ui/draggable.js +++ b/ui/draggable.js @@ -94,20 +94,9 @@ $.widget("ui.draggable", $.ui.mouse, { }, _mouseCapture: function(event) { + var o = this.options; - var document = this.document[ 0 ], - o = this.options; - - // support: IE9 - // IE9 throws an "Unspecified error" accessing document.activeElement from an