Make WordPress Core

Ticket #27358: 27358.2.diff

File 27358.2.diff, 511 bytes (added by westonruter, 10 years ago)

Fix Firefox shift+click problem to open widget due to apparent difference with Chrome in how jQuery implements :focusable selector. Specify focus on first focusable element inside .widget-content, and remove click trigger now handled by expandForm()

  • src/wp-admin/js/customize-widgets.js

    diff --git src/wp-admin/js/customize-widgets.js src/wp-admin/js/customize-widgets.js
    index a489b6e..a64c975 100644
    var WidgetCustomizer = ( function ($) { 
    14231423                        var control = this;
    14241424                        control.expandControlSection();
    14251425                        control.expandForm();
    1426                         control.container.find( ':focusable:first' ).focus().trigger( 'click' );
     1426                        control.container.find( '.widget-content :focusable:first' ).focus();
    14271427                },
    14281428
    14291429                /**