mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-26 02:57:45 +01:00
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. Built from https://develop.svn.wordpress.org/branches/4.8@41057 git-svn-id: http://core.svn.wordpress.org/branches/4.8@40907 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
d32185545b
commit
3f4babe28b
@ -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 );
|
||||
});
|
||||
|
2
wp-admin/js/customize-nav-menus.min.js
vendored
2
wp-admin/js/customize-nav-menus.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user