Changed onClose for datePicker