Open patrickehughes opened 10 years ago
I am facing an same issue, did you find any solution?
Bug #132 solution https://github.com/alpo008/jquery-simple-datetimepicker.git
if ($picker.data("isInline") === false && $picker.data("closeOnSelected")){
// Apply callback
var func = $picker.data('onHide');
if (typeof func === 'function') {
func();
}
// Close picker
ActivePickerId = -1;
$picker.hide();
}
Set closeOnSelcted to true. When the dtpicker hides due to selection the onHide method is not invoked. When it closes due to a click outside of the dtpicker, the onHide method is invoked as expected.