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

Close event will trigger "hide.bs.modal" abnormally #713

Open AlexV525 opened 6 years ago

AlexV525 commented 6 years ago

When datetimepicker close, "hide.bs.modal" will trigger but modal won't hide. Expect this event won't trigger.

fscarabino-at-work commented 6 years ago

Same behaviour here. Why is these event being triggered?

AlexV525 commented 6 years ago

Hi i finally can reply at here. Things happen like this: Put a input element inside a bootstrap modal, then initialize datetimepicker for this input. Trigger modal show, then click input and change or not change chosen time. Then click somewhere outside the element of datetimepicker, this event will triggered. I don't know how to use JSFiddler for adding bootstrap into it, if source code is needed, i can paste it at here.