Make WordPress Core

Changeset 22512


Ignore:
Timestamp:
11/09/2012 08:57:09 PM (14 years ago)
Author:
nacin
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/js/customize-controls.js

    r22492 r22512  
    104104                                if (!toggleFreeze)
    105105                                        control.container.toggleClass('open');
     106
     107                                if ( control.container.hasClass('open') )
     108                                        control.container.parent().parent().find('li.library-selected').focus();
    106109
    107110                                // Don't want to fire focus and click at same time
Note: See TracChangeset for help on using the changeset viewer.