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: http://core.svn.wordpress.org/trunk@22512 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
e860d3eb24
commit
e77ec92846
|
@ -104,6 +104,9 @@
|
||||||
if (!toggleFreeze)
|
if (!toggleFreeze)
|
||||||
control.container.toggleClass('open');
|
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
|
// Don't want to fire focus and click at same time
|
||||||
toggleFreeze = true;
|
toggleFreeze = true;
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
|
|
Loading…
Reference in New Issue