Open a submenu when its parent menu item is clicked on macOS (#21890)