Make WordPress Core

Ticket #33258: 33258.3.diff

File 33258.3.diff, 1.2 KB (added by westonruter, 10 years ago)

https://github.com/xwp/wordpress-develop/pull/112/files

  • src/wp-admin/js/customize-controls.js

    diff --git src/wp-admin/js/customize-controls.js src/wp-admin/js/customize-controls.js
    index 739b962..56a9e62 100644
     
    7373                        } else {
    7474                                focusContainer = construct.container;
    7575                        }
    76                         focusContainer.find( ':focusable:first' ).focus();
    77                         focusContainer[0].scrollIntoView( true );
     76
     77                        // Note that we can't use :focusable due to a jQuery UI issue. See: https://github.com/jquery/jquery-ui/pull/1583
     78                        focusContainer.find( 'input, select, textarea, button, object, a[href], [tabindex]' ).filter( ':visible' ).first().focus();
    7879                };
    7980                if ( params.completeCallback ) {
    8081                        completeCallback = params.completeCallback;
  • src/wp-admin/js/customize-widgets.js

    diff --git src/wp-admin/js/customize-widgets.js src/wp-admin/js/customize-widgets.js
    index 8aa603a..f1490a5 100644
     
    12701270
    12711271                        if ( expanded ) {
    12721272
    1273                                 if ( 'undefined' != typeof api.section( self.section ) && ! api.section( self.section ).expanded() ) {
     1273                                if ( self.section() && api.section( self.section() ) ) {
    12741274                                        self.expandControlSection();
    12751275                                }
    12761276