bootstrap-datepicker
bootstrap-datepicker copied to clipboard
hide event doesn't always fire
Expected behaviour
jQuery to process the hide event should fire when the datepicker is hidden
Actual behaviour
It doesn;t always fire
Datepicker version used
1.6.4
Example code
$("#ForecastFromDate,#ForecastToDate").on("hide", function (e) { var validate = $(this).data("validate"); OKToDisplay(validate); });
This is happening on a form with 2 datepicker controls. Whichever one I use first fires the hide event but it does not fire for the second one. This happens no matter whether I use ForecastFromDate first or ForecastToDate.
This is still an issue for me and in fact means I will not be able to use datepicker unless it's resolved. It's become worse than the original report as now the hide event is never firing using the code in the original post. The only other piece of info that might be relevant is that I have autoclose set to true.
Any suggestion welcome since I like everything else about datepicker.
Any update on this? I'm also facing an issue where hide event is not triggered when autoclose is true.