Make WordPress Core

Changeset 35486


Ignore:
Timestamp:
11/01/2015 10:26:47 PM (9 years ago)
Author:
westonruter
Message:

Customize: Fix auto-expand (and focus) on newly added widgets.

Add widget controls with an initially-true active state so that calling expand() will not be short-circuited. Previously the active state would be set once the preview refreshes, but this happens too late for the addWidget call. Fixes regression introduced in [35231].

Fixes #34514.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/js/customize-widgets.js

    r35304 r35486  
    20022002                    width: widget.get( 'width' ),
    20032003                    height: widget.get( 'height' ),
    2004                     is_wide: widget.get( 'is_wide' )
     2004                    is_wide: widget.get( 'is_wide' ),
     2005                    active: true
    20052006                },
    20062007                previewer: self.setting.previewer
Note: See TracChangeset for help on using the changeset viewer.