Customizer: Use correct event variable when moving widgets to another widget area.
Fixes "ReferenceError: event is not defined error." in Firefox. props tywayne. fixes #30818. git-svn-id: https://develop.svn.wordpress.org/trunk@30992 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
c05e46e4d1
commit
f3d83c3f6c
@ -684,11 +684,11 @@
|
||||
/**
|
||||
* Handle selecting a sidebar to move to
|
||||
*/
|
||||
this.container.find( '.widget-area-select' ).on( 'click keypress', 'li', function( e ) {
|
||||
this.container.find( '.widget-area-select' ).on( 'click keypress', 'li', function( event ) {
|
||||
if ( event.type === 'keypress' && ( event.which !== 13 && event.which !== 32 ) ) {
|
||||
return;
|
||||
}
|
||||
e.preventDefault();
|
||||
event.preventDefault();
|
||||
selectSidebarItem( $( this ) );
|
||||
} );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user