bootstrap-datepicker icon indicating copy to clipboard operation
bootstrap-datepicker copied to clipboard

hide event doesn't always fire

Open lcsqlpete opened this issue 7 years ago • 2 comments

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.

lcsqlpete avatar Apr 05 '17 23:04 lcsqlpete

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.

lcsqlpete avatar Jan 25 '18 22:01 lcsqlpete

Any update on this? I'm also facing an issue where hide event is not triggered when autoclose is true.

ryanb avatar Dec 10 '20 22:12 ryanb