diff --git src/wp-admin/js/customize-controls.js src/wp-admin/js/customize-controls.js
index 739b962..56a9e62 100644
|
|
|
|
| 73 | 73 | } else { |
| 74 | 74 | focusContainer = construct.container; |
| 75 | 75 | } |
| 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(); |
| 78 | 79 | }; |
| 79 | 80 | if ( params.completeCallback ) { |
| 80 | 81 | completeCallback = params.completeCallback; |
diff --git src/wp-admin/js/customize-widgets.js src/wp-admin/js/customize-widgets.js
index 8aa603a..f1490a5 100644
|
|
|
|
| 1270 | 1270 | |
| 1271 | 1271 | if ( expanded ) { |
| 1272 | 1272 | |
| 1273 | | if ( 'undefined' != typeof api.section( self.section ) && ! api.section( self.section ).expanded() ) { |
| | 1273 | if ( self.section() && api.section( self.section() ) ) { |
| 1274 | 1274 | self.expandControlSection(); |
| 1275 | 1275 | } |
| 1276 | 1276 | |