javascript - DateTimePicker Bootstrap hiding input field on blur -
so, i'm using this [bootstrap datetimepicker] plugin allow user pick date , time. plugin works fine, except 1 small problem, whenever user clicks away or blurs calendar box, box , input element disappear!
i have looked in css , js files find might lead me in right path (focus, blur, etc), have not had luck.
i appreciate if point me in right direction. thank you!
this html creating element:
<div id="eventstartdate" class="input-append date"><input type="text" data-format="dd/mm/yyyy hh:mm:ss" /><span class="add-on"> <i data-time-icon="icon-time" data-date-icon="icon-calendar"></i></span></div> <script> $(document).ready(function () { $('#eventstartdate').datetimepicker({ language: 'en', pick12hourformat: true, format: 'dd/mm/yyyy hh:mm:ss', maskinput: true }); }); </script>
i not find correct manner this, moment being did unbind hiding of div this:
$('#eventstartdate').on('hide', function (e) { e.preventdefault(); });
this works until find better solution :/
Comments
Post a Comment