Make WordPress Core

Changeset 33939


Ignore:
Timestamp:
09/07/2015 05:58:44 AM (9 years ago)
Author:
westonruter
Message:

Customize: Fix logic for determining the container element when focusing on a panel, section, or control.

Fixes #33695 for trunk.

File:
1 edited

Legend:

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

    r33938 r33939  
    8383        focus = function () {
    8484            var focusContainer;
    85             if ( construct.expanded && construct.expanded() ) {
    86                 focusContainer = construct.container.find( 'ul:first' );
     85            if ( construct.extended( api.Panel ) && construct.expanded && construct.expanded() ) {
     86                focusContainer = construct.container.find( 'ul.control-panel-content' );
     87            } else if ( construct.extended( api.Section ) && construct.expanded && construct.expanded() ) {
     88                focusContainer = construct.container.find( 'ul.accordion-section-content' );
    8789            } else {
    8890                focusContainer = construct.container;
Note: See TracChangeset for help on using the changeset viewer.