Datepicker closing on selection