0
TIMES CLICKED OUTSIDE
COMPONENT CONTENT

If you click outside of COMPONENT CONTENT, counter goes up! So, you can capture than event and do something with it, like closing the menu.