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:
parent
caf4c06f2a
commit
34c3d7d044
@ -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 );
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user