What happens is that I am implementing a calendar in my application, for that I use JQuery, but at the time of the settings is where the problem arises and is that it does not let me select the full date, only the year and later this is hidden and I should not do it, I've already thought about it a lot but I can not configure the calendar correctly, so please help me see where the inconvenience is.
$('[data-toggle="datepicker"]').datepicker({
inline: true,
startView: 2
});
.calendar {
border: 1px solid red;
height: 30px;
}
.datepicker-container {
margin-top: 40px;
}
<link href="https://fengyuanchen.github.io/datepicker/css/datepicker.css" rel="stylesheet" />
<div class="datepicker">
<span class="text">
Selecciona una fecha
</span>
<div class="calendar" data-toggle="datepicker">
</div>
</div>
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"></script>
<script src="https://fengyuanchen.github.io/datepicker/js/datepicker.js"></script>