jquery-ui/tests
Ryan Oriecuia 8c66934434 Draggable: Fix spurious blur in dialogs on mousedown
I was running into a problem with a popup menu control in a dialog; clicks
weren't working (but keyboard was working fine). It turned out that the menu
was getting destroyed before the click event could fire.

Tracked down the issue to the way draggable blurs focused controls; it was
doing the blur before it ran through the logic to figure out if the drag was
actually on the handle. I've moved the blur below these checks, so it'll only
blur things if it actually needs to handle the drag. Otherwise, it asserts no
opinion on what should and shouldn't be focused, which seems like the way
things ought to be.

Also, added a unit test to check for the expected behavior.

Fixes #15046
Closes gh-1730
2016-09-13 08:53:00 -04:00
..
images All: Optimize png images losslessly using zopflipng 2016-06-06 11:26:06 -04:00
lib Build: Add jQuery 3.1.0 2016-07-08 13:02:10 -04:00
unit Draggable: Fix spurious blur in dialogs on mousedown 2016-09-13 08:53:00 -04:00
visual All: Optimize png images losslessly using zopflipng 2016-06-06 11:26:06 -04:00
.jshintrc Tests: Remove all qunit global excludes from jshint config 2016-04-14 00:29:33 +05:30
index.css Theme: Change default widget font-size to 1em 2014-10-24 07:23:31 -07:00
index.html Build: Reorganize external directory 2014-06-24 22:45:32 -04:00
index.js Tests: Style updates 2015-08-21 08:06:24 -04:00