Make WordPress Core

Changeset 33940


Ignore:
Timestamp:
09/07/2015 06:04:39 AM (10 years ago)
Author:
westonruter
Message:

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

Cherry-picks [33939] on the 4.3 branch.
Fixes #33695 for 4.3

File:
1 edited

Legend:

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

    r33610 r33940  
    6969        focus = function () {
    7070            var focusContainer;
    71             if ( construct.expanded && construct.expanded() ) {
    72                 focusContainer = construct.container.find( 'ul:first' );
     71            if ( construct.extended( api.Panel ) && construct.expanded && construct.expanded() ) {
     72                focusContainer = construct.container.find( 'ul.control-panel-content' );
     73            } else if ( construct.extended( api.Section ) && construct.expanded && construct.expanded() ) {
     74                focusContainer = construct.container.find( 'ul.accordion-section-content' );
    7375            } else {
    7476                focusContainer = construct.container;
Note: See TracChangeset for help on using the changeset viewer.