Caps, close datepicker on click