I have some JS that is executing on a datepicker that closes it. Whenever I select a date, it works. When I select the a month or a year from the selectmenu, an event is executing that is focusing off of the datepicker and closes it.
Any suggestions on how to track down this event?
Relevant Code
$(function() {
$(".isDatepicker").datepicker({
changeMonth: true,
changeYear: true,
showOn: "button",
buttonText: "<i class='fa fa-calendar'></i>",
});
});