diff --git a/src/wp-includes/js/customize-preview.js b/src/wp-includes/js/customize-preview.js index 026706e314..f51c45ff98 100644 --- a/src/wp-includes/js/customize-preview.js +++ b/src/wp-includes/js/customize-preview.js @@ -138,7 +138,7 @@ */ handleLinkClick: function( event ) { var preview = this, link, isInternalJumpLink; - link = $( event.target ); + link = $( event.target ).closest( 'a' ); // No-op if the anchor is not a link. if ( _.isUndefined( link.attr( 'href' ) ) ) {