campuspress/divi-accessibility

First item of submenu can get focus after closing menu via ESC

mrwweb opened this issue · 0 comments

This bug happens intermittently and I haven't been able to figure out situations in which it doesn't happen. However it does happen with relative frequency. I've seen it both on a site I have access to and a different one referenced in #56.

To reproduce:

  1. TAB into a submenu so focus enters the submenu (either one or more positions)
  2. Press ESC. Focus returns to parent menu item
  3. Press TAB once. Focus is now on the first (invisible) item of the submenu.
  4. Press TAB again to go to next parent item in menu (the item one would expect to receive focus in Step 3)