[wp-trac] [WordPress Trac] #34436: Issue with wp.customizer.panel('name').focus().

WordPress Trac noreply at wordpress.org
Sun May 23 18:28:22 UTC 2021


#34436: Issue with wp.customizer.panel('name').focus().
----------------------------------------+-----------------------------
 Reporter:  wpweaver                    |       Owner:  (none)
     Type:  defect (bug)                |      Status:  new
 Priority:  normal                      |   Milestone:  Future Release
Component:  Customize                   |     Version:  4.3.1
 Severity:  normal                      |  Resolution:
 Keywords:  needs-patch good-first-bug  |     Focuses:  javascript
----------------------------------------+-----------------------------
Changes (by celloexpressions):

 * keywords:  needs-patch => needs-patch good-first-bug
 * focuses:   => javascript
 * milestone:   => Future Release


Comment:

 This should be a relatively straightforward bug to patch. Likely a matter
 of adding a conditional to the `panel.focus()` JS method that closes any
 open sections.

 To test: open the customizer to editing a specific menu. Enter this into
 the browser console: `wp.customize.panel( 'nav_menus' ).focus();`.
 Expected behavior is for the menu to close and the list of menus (top-
 level menu panel) to appear.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/34436#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list