campuspress/divi-accessibility

Closing mobile menu with ESC doesn't return focus to mobile menu button

mrwweb opened this issue · 0 comments

When closing the mobile menu via the ESC key, focus remains on the link in the closed menu rather than being returned to the mobile menu open/close button.

  1. TAB to mobile menu and open it
  2. TAB into mobile menu
  3. Press ESC
  4. Press SHIFT + TAB to return back to menu (should be focused in Step 3) / document.activeElement in console shows the submenu link is focused

This feels separate but related to #72, although it's possible that fixing one will fix both.