Customizer: Passes focus to the upload tab to avoid focus changing when a drag event occurs from outside the browser. props lessbloat. fixes #21283.

git-svn-id: https://develop.svn.wordpress.org/trunk@22512 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2012-11-09 20:57:09 +00:00
parent bc936748c3
commit 6680184c9e
1 changed files with 3 additions and 0 deletions

View File

@ -104,6 +104,9 @@
if (!toggleFreeze)
control.container.toggleClass('open');
if ( control.container.hasClass('open') )
control.container.parent().parent().find('li.library-selected').focus();
// Don't want to fire focus and click at same time
toggleFreeze = true;
setTimeout(function () {