You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For cases where a submenu is inside another togglable element, the ESC key should close an open submenu but not close the containing element. Add this so that ESC only closes a parent element if no submenus are open:
functioncloseOnEscKey(e){if(27===e.keyCode){// we're in a submenu itemif(null!==e.target.closest('ul[aria-hidden="false"]')){currentMenuItem.focus();toggleSubmenu(currentMenuItem);e.stopPropagation();// ADDED!// we're on a parent item}elseif('true'===e.target.getAttribute('aria-expanded')){toggleSubmenu(currentMenuItem);e.stopPropagation();// ADDED!}}}
The text was updated successfully, but these errors were encountered:
For cases where a submenu is inside another togglable element, the ESC key should close an open submenu but not close the containing element. Add this so that ESC only closes a parent element if no submenus are open:
The text was updated successfully, but these errors were encountered: