hides the submenu on focusout
Merge pull request #2402 from icaaq/hide_submenu_on_focusout

hides the submenu on focusout