Close submenu in response to clicks off the submenu