Customize: Prevent navigation in preview when clicking on child elements of preview links that have non-previewable URLs.

Fixes #39098.


git-svn-id: https://develop.svn.wordpress.org/trunk@39584 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Weston Ruter 2016-12-12 08:08:08 +00:00
parent 9e70bab188
commit 050eb4da17

View File

@ -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' ) ) ) {