smalot / bootstrap-datetimepicker

Both Date and Time picker widget based on twitter bootstrap (supports Bootstrap v2 and v3)
http://www.malot.fr/bootstrap-datetimepicker/
Apache License 2.0
3.49k stars 1.65k forks source link

Recent bug where datetimepicker auto hides #707

Open echan00 opened 6 years ago

echan00 commented 6 years ago

I recently upgraded bootstrap-datetimepicker.js from a version prior to Dec 2016.

I had multiple buttons that would call $('#datetimepicker').datetimepicker('show'); to display the datetime picker.

It looks like the newest version of the JS file has broken this and nothing happens when I click on any of those buttons. A little big of debugging shows that the show and hide events are both being called one after the other.

echan00 commented 6 years ago

It looks like this is the commit that is causing the issue

https://github.com/smalot/bootstrap-datetimepicker/commit/82070f02926a1c4763446aecf22ba08433e7ddb4#diff-27d24a365a394aedb95fbcf2d7d96d14