Make WordPress Core

Opened 6 years ago

Closed 6 years ago

#34629 closed defect (bug) (fixed)

Nav menu item controls are not (auto-)focusable

Reported by: westonruter Owned by: westonruter
Milestone: 4.4 Priority: normal
Severity: normal Version: 4.3
Component: Customize Keywords: has-patch
Focuses: javascript Cc:


When attempting to access the Customizer with a nav_menu_item control autofocused, using a URL such as:


The result is that the Customizer does not focus on that control when it loads. Instead, when attempting to click through to the nav menu item there is an additional regression where you have to click the menu section twice to open it.

The issue with focus on the nav menu item control was addressed previously for Widgets in #33258. The same fix is needed for nav menu items.

Attachments (1)

34629.0.diff (1.1 KB) - added by westonruter 6 years ago.

Download all attachments as: .zip

Change History (3)

#1 @westonruter
6 years ago

  • Keywords has-patch added

6 years ago

#2 @westonruter
6 years ago

  • Owner set to westonruter
  • Resolution set to fixed
  • Status changed from new to closed

In 35584:

Customize: Fix focus and autofocus on nav_menu_item controls.

Embed the nav_menu_item control not only when the contained nav_menu section expands, but also if the control was autofocused (via the autofocus[control] query param). Also applies change from [33596] to work-around a broken :focusable selector in jQuery UI.

See #33258.
Fixes #34629.

Note: See TracTickets for help on using tickets.