-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Paging months/year causes the date select dropdown to close immediately when using FastClick #720
Comments
do you still have this issue with v4? |
This still fails on V4, it's currently unusable when using FastClick. Adding the 'needsclick' class to all tappable elements should fix it. |
I can't reproduce this in the current version. Please provide a fiddle or a demo page exhibiting the issue |
@Eonasdan Open on mobile or enable "device mode" in chrome developer tools to witness the issue |
I'm also having this problem when combining fastclick and https://github.com/smalot/bootstrap-datetimepicker. Adding the 'needsclick' class to the form input element helped with that library. I tried adding that class to @brad's jsfiddle and it did not help. |
Same - adding needsclick class to all of the th/td elements is what is required for this to work with fastclick. This is specifically testing it on iPad. It would be helpful to be able to add classes to clickable elements to get around this, or you can make a nasty hack like this:
|
Im trying to use datetimepicker together with fastclick without success. I've tried your hack coxw but somehow when the layout changes (for example when switching between months) without calling update/show/change function, which in turns closes the popup the next click. Why is this issue closed when the issue seems to be unresolved? |
This can be fix with touchstart. I'll do a PR |
Selecting the next month or year using the datepicker on a web application using the FastClick js library (https://github.com/ftlabs/fastclick) for mobile devices causes the calendar selector to hide itself immediately.
This seems to be an issue with touchstart versus click listeners, as discussed here ftlabs/fastclick#48 and here twbs/bootstrap#6488.
The text was updated successfully, but these errors were encountered: