Restore onComplete logic in datepicker onClose handler.