WordPress.org

Make WordPress Core

Changeset 41020


Ignore:
Timestamp:
07/10/2017 06:39:56 PM (22 months ago)
Author:
westonruter
Message:

Customize: Restrict click target of menu deletion, moving to button from its container.

Props westonruter, afercia.
Fixes #40981.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/js/customize-nav-menus.js

    r41001 r41020  
    22302230            } );
    22312231
    2232             control.container.find( '.menu-delete-item' ).on( 'click', function( event ) {
    2233                 event.stopPropagation();
     2232            control.container.find( '.menu-delete-item .button-link-delete' ).on( 'click', function( event ) {
    22342233                event.preventDefault();
    22352234                control.setting.set( false );
Note: See TracChangeset for help on using the changeset viewer.