tempusdominus / bootstrap-3

Tempus Dominus Bootstrap 3
https://getdatepicker.com/5-3/
MIT License
70 stars 23 forks source link

Date picker does not recognize clicks and just closes #49

Open takinola opened 7 years ago

takinola commented 7 years ago

I have embedded the widget in a site and noticed that the date picker does not respond to clicks on the calendar to either select a date or advance the month selector. There is clearly something about the site that is either intercepting the click events or preventing them from happening.

In order to help troubleshoot, can you please help identify the section of the code that listens for clicks on the calendar. What are the bindings used (e.g which CSS selectors)? What event triggers are used?

William-H-M commented 7 years ago

Hi, at least you give us something on which to work like a fiddle that can be reproduced or some code, it's impossible to us just to guess out.

takinola commented 7 years ago

I apologize for the less than comprehensive issue description. This is part of a very large application that is difficult to port into a fiddle. This is why I decided to try and troubleshoot from the widget side.

Anyway, I did already resolve the issue. The site uses FastClick(https://github.com/ftlabs/fastclick) which has been found to interfere with the event bubbling on mobile devices. I disabled FastClick on the date picker container and the issue went away.

William-H-M commented 7 years ago

Ok, so then this issue can be close, @Eonasdan .