Opened 12 years ago
Closed 12 years ago
#29529 closed defect (bug) (fixed)
Shift-click widget editing issues the Customizer
| Reported by: | hardeepasrani | Owned by: | ocean90 |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.1 |
| Component: | Customize | Version: | 4.0 |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: | ui, javascript |
Description
Hey folks,
I like the new Customizer API which allows us to add panels to the Customizer but it's also causing a simple problem with "Shift-click to edit this widget" option.
Shift-click feature is not working on the Customizer, unless you're editing the Widgets panel.
Thanks :)
Change History (7)
#3
@
12 years ago
- Milestone 4.1 → Future Release
No reason that this necessarily needs to be in 4.1, but it does depend on #28709 - we'll wait for a patch.
#4
@
12 years ago
Yeah, so once #28709 lands, as the patch exists right now, then the issue in this ticket can be resolved by first invoking (not final):
wp.customize.panel( 'widgets' ).toggle( true )
And actually, this should be automatic. So when something like this is called:
wp.customize.control( 'widget_text[123]' ).focus()
It should automatically cause the containing section and panel to also expand.
#5
@
12 years ago
- Focuses javascript added
- Keywords has-patch added
This is now fixed in the most recent patch for #28709 (now on a GitHub PR). Namely, now WidgetControl.expandControlSection() is using the new API api.section( this.section() ).expand() which automatically expands the containing panel if it is not expanded.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Confirmed. This is something that should be able to leverage the Customizer deep-linking functionality that westonruter is working on for 4.1 rather than all of the widgets-specific code it's currently using (which doesn't account for panels).