WordPress.org

Make WordPress Core

Ticket #38554: 38554.0.diff

File 38554.0.diff, 901 bytes (added by westonruter, 5 years ago)
  • src/wp-includes/js/customize-selective-refresh.js

    diff --git src/wp-includes/js/customize-selective-refresh.js src/wp-includes/js/customize-selective-refresh.js
    index a09965e..f47239d 100644
    wp.customize.selectiveRefresh = ( function( $, api ) { 
    10241024                        } );
    10251025
    10261026                        body.on( 'click', function( event ) {
    1027                                 if ( $( event.target ).is( '.customize-partial-edit-shortcut, :input, a[href]' ) || 0 !== $( event.target ).closest( 'a' ).length ) {
     1027                                if ( $( event.target ).is( '.customize-partial-edit-shortcut, :input, button *, a[href], a[href] *, object, object *, [tabindex], [tabindex] *' ) ) {
    10281028                                        return; // Don't toggle shortcuts on form, link, or link child clicks.
    10291029                                }
    10301030                                api.selectiveRefresh.editShortcutVisibility.set( 'visible' === api.selectiveRefresh.editShortcutVisibility.get() ? 'hidden' : 'visible' );