Opened 12 years ago
Closed 12 years ago
#30818 closed defect (bug) (fixed)
Customizer: Cannot Reorder/Move widget to new widget area in Firefox
| Reported by: | tywayne | Owned by: | ocean90 |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.2 |
| Component: | Customize | Version: | 3.9 |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: | javascript |
Description
Steps to recreate:
- Activate a theme with multiple sidebars registered (I was using TwentyFourteen).
- Go to Appearance -> Customize, then select Widgets
- Toggle view of widgets in one of the sidebars
- Click Reorder, then the 'move widget' icon
- This will toggle a list of other registered sidebar areas where you can move the widget to. Attempting to select one of them will do nothing but give
ReferenceError: event is not definederror.
The error is in lines 684-693 of /wp-admin/js/customize-widgets.js
this.container.find( '.widget-area-select' ).on( 'click keypress', 'li', function( e ) {
if ( event.type === 'keypress' && ( event.which !== 13 && event.which !== 32 ) ) {
return;
}
e.preventDefault();
selectSidebarItem( $( this ) );
} );
The parameter passed to the function is e but then referenced in the function as event
Chrome/Safari seem to ignore this and work just fine, but Firefox throws the error and doesn't allow the action.
Attachments (1)
Change History (4)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
In 30992: