close datepicker when clicking on a new annotation