on document.click, let the control dictate if needed to hide

When adding this menu to a grid it was not hiding properly so I shifted away from the k-custom-visible class check to the shown widget variable