Error while selecting date focused on bootstrap datepicker

1

I'm using the bootstrap datepicker version 2.0.

// Expected Behavior

When you type a day it gets focused on the calendar so when you click on this focus day, you have to fill in the date.

// Real behavior

When you type a day it gets focused on the calendar so when you click on this one in focus, it clears the date field.

Here's an example: link

$('.input-group.date').datepicker({
    keyboardNavigation: false,
    forceParse: false,
    autoclose: true,
    format: "dd/mm/yyyy",
    todayHighlight: true
});
<label class="col-sm-2 control-label">Data</label>
<div class="col-sm-2 disableDiv">
    <div class="input-group date">
        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
        <div class="input-daterange input-group" id="dteAtual">
            <input type="text" class="form-control input-data dtAtual" runat="server" id="dtAtual" name="dtAtual" data-mask="99/99/9999" />
        </div>
    </div>
</div>
    
asked by anonymous 30.11.2017 / 19:59

0 answers