Error selecting date focused on bootstrap datepicker

Asked

Viewed 265 times

1

I’m using the bootstrap datepicker version 2.0.

// Expected behaviour

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

// Actual behaviour

When typing one day it is focused on the calendar then, by clicking on this one in focus, clears the date field.

Following example: https://gyazo.com/ab8857125ef47728c8cc0201c0430d46

$('.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>
  • 1

    please put the important codes for the development of the answer and understanding of the question coupled to own in the function of embedding code, in view of which questions and answers should by themselves contain all the necessary content without relying on the operation of sites external to the stack overflow.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.