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

incorrect behavior of navigation arrows #269

Open mdipierro opened 10 years ago

mdipierro commented 10 years ago

Occasionally when clicking on navigation arrows in month view in goes into day view instead of going to next /previous month.

timoaeb commented 10 years ago

Experiencing the same issue here. Depending on the position of your click on the arrow, the widget will "select" the selected date (coloured in blue) instead of changing the month.

xklid101 commented 10 years ago

Same issue too. But only with file bootstrap-datetimepicker.min.js included (with bootstrap-datetimepicker.js it works without problems for me) It looks like min.js missing lines 813-815 from .js:

if (target.is('.glyphicon')) {
    target = $(target).parent().closest('span, td, th, legend');
}
ZainShaikh commented 10 years ago

I am also facing same issue! thinking of switching to any other datetime picker for now.

mdipierro commented 10 years ago

I agree. This is a bug only in the minified version. Now sure if the bug is introduced by the minification or they are different versions.

tonypresnow commented 10 years ago

I'm experiencing the same issue, however, switching to non-minified version doesn't resolve the problem for me.

tonypresnow commented 10 years ago

Just to clarify, I'm using bootstrap 3.2.0. I've noticed that in the "sample in bootstrap v2" folder, the calendar arrows work correctly. However, in the "sample in bootstrap v3" folder, only clicking near the very top of the arrow buttons will result in the correct behavior.

tonypresnow commented 10 years ago

xklid101, Pasting your section of code into the bootstrap-datetimepicker.js file resolved the problem for me. Perhaps that section of code was removed in the latest release?