Close date picker container if clicked elsewhere

This event handler catches all clicks and closes the date range picker when its an external click.