diff options
author | Steven Luscher <jquerycla@steveluscher.com> | 2013-05-01 15:01:32 -0700 |
---|---|---|
committer | Mike Sherov <mike.sherov@gmail.com> | 2013-06-19 18:07:38 -0400 |
commit | fcd1cafac8afe3a947676ec018e844eeada5b9de (patch) | |
tree | 4dee58eb628ea32edb7f0ac6f22def8aba2d3d55 /ui | |
parent | bca3e058e89bf40806170149b8029dfe52644248 (diff) | |
download | jquery-ui-fcd1cafac8afe3a947676ec018e844eeada5b9de.tar.gz jquery-ui-fcd1cafac8afe3a947676ec018e844eeada5b9de.zip |
Draggable: active element blurs when clicking on a draggable. Fixes #4261 - Draggable: Inputs do not blur when clicking on a draggable
Diffstat (limited to 'ui')
-rw-r--r-- | ui/jquery.ui.draggable.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ui/jquery.ui.draggable.js b/ui/jquery.ui.draggable.js index 9ee858725..ab1e800cd 100644 --- a/ui/jquery.ui.draggable.js +++ b/ui/jquery.ui.draggable.js @@ -78,6 +78,8 @@ $.widget("ui.draggable", $.ui.mouse, { var o = this.options; + $( document.activeElement ).blur(); + // among others, prevent a drag on a resizable-handle if (this.helper || o.disabled || $(event.target).closest(".ui-resizable-handle").length > 0) { return false; |