WordPress.org

Make WordPress Core

Changeset 41057


Ignore:
Timestamp:
07/14/2017 05:43:48 PM (2 years ago)
Author:
westonruter
Message:

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

Merges [41020] onto 4.8 branch.
Props westonruter, afercia.
Fixes #40981 for 4.8.1.

Location:
branches/4.8
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.8

  • branches/4.8/src/wp-admin/js/customize-nav-menus.js

    r40396 r41057  
    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.