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

Props westonruter, afercia.
Fixes #40981.


git-svn-id: https://develop.svn.wordpress.org/trunk@41020 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Weston Ruter 2017-07-10 18:39:56 +00:00
parent caf4c06f2a
commit 34c3d7d044

View File

@ -2229,8 +2229,7 @@
}
} );
control.container.find( '.menu-delete-item' ).on( 'click', function( event ) {
event.stopPropagation();
control.container.find( '.menu-delete-item .button-link-delete' ).on( 'click', function( event ) {
event.preventDefault();
control.setting.set( false );
});