Skip to content

Commit

Permalink
Merge pull request #973 from zigasancin/fix/focus-first-radio-button-…
Browse files Browse the repository at this point in the history
…in-amp-status

Focus first radio button in AMP status
  • Loading branch information
westonruter committed Feb 26, 2018
2 parents ac753c4 + 730043b commit 665df93
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions assets/js/amp-post-meta-box.js
Expand Up @@ -161,6 +161,8 @@ var ampPostMetaBox = ( function( $ ) {
editAmpStatus.fadeToggle( component.toggleSpeed, function() {
if ( editAmpStatus.is( ':visible' ) ) {
editAmpStatus.focus();
} else {
$container.find( 'input[type="radio"]' ).first().focus();
}
} );
$container.slideToggle( component.toggleSpeed );
Expand Down

0 comments on commit 665df93

Please sign in to comment.