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. git-svn-id: https://develop.svn.wordpress.org/trunk@35486 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
d74794fdde
commit
3ef1e8194b
@ -2001,7 +2001,8 @@
|
||||
is_new: ! isExistingWidget,
|
||||
width: widget.get( 'width' ),
|
||||
height: widget.get( 'height' ),
|
||||
is_wide: widget.get( 'is_wide' )
|
||||
is_wide: widget.get( 'is_wide' ),
|
||||
active: true
|
||||
},
|
||||
previewer: self.setting.previewer
|
||||
} );
|
||||
|
Loading…
x
Reference in New Issue
Block a user