My project has a date picker that has buttons to go to previous / next months. it looks like this: 
but when I click the buttons in the right and left corner of the control, it suddenly disappears.
Jquery function:
$( "#departDate" ).datepicker({ showOtherMonths: true, //inline:true, dateFormat: 'dd-mm-yy', numberOfMonths: 2, selectOtherMonths: true, minDate: 0, onClose: function (selectedDate) { $("#arriveDate").datepicker("option", "minDate", selectedDate); if (!single && $("#arriveDate").val()=="") $("#arriveDate").focus(); } });
I tried to comment onClose:
and minDate
, but none of these fixed issues.
When I remove the blur function on this datepicker, it stops fading. But I need to make it disappear when you click anywhere on this tool.
source share