Opened 10 years ago
Closed 10 years ago
#30818 closed defect (bug) (fixed)
Customizer: Cannot Reorder/Move widget to new widget area in Firefox
Reported by: | tywayne | Owned by: | ocean90 |
---|---|---|---|
Milestone: | 4.2 | Priority: | normal |
Severity: | normal | Version: | 3.9 |
Component: | Customize | Keywords: | has-patch |
Focuses: | javascript | Cc: |
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 defined
error.
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.
In 30992: