Make WordPress Core

Changeset 39584


Ignore:
Timestamp:
12/12/2016 08:08:08 AM (8 years ago)
Author:
westonruter
Message:

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

Fixes #39098.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/js/customize-preview.js

    r39547 r39584  
    139139        handleLinkClick: function( event ) {
    140140            var preview = this, link, isInternalJumpLink;
    141             link = $( event.target );
     141            link = $( event.target ).closest( 'a' );
    142142
    143143            // No-op if the anchor is not a link.
Note: See TracChangeset for help on using the changeset viewer.