Skip to content
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

Calendar is not hiding in iOS 7 on clicking out of the date picker #141

Open
arvsr1988 opened this issue Apr 28, 2014 · 5 comments
Open

Comments

@arvsr1988
Copy link

I'm using iOS 7 and the calendar is not hiding if I click outside the datepicker (somewhere else in the page). However, if I click another input box or a button the calendar hides. Is this by design?

@rikkert
Copy link
Member

rikkert commented Apr 28, 2014

No, this is a bug.

@arvsr1988
Copy link
Author

Have forked your repo and put my fix. Please merge if you find it appropriate. https://github.com/arvsr1988/Pikaday

@rikkert
Copy link
Member

rikkert commented Apr 30, 2014

Thanks for the fix.
This issue is caused by strange behaviour in iOS safari with event delegation:
http://www.quirksmode.org/blog/archives/2014/02/mouse_event_bub.html

@rikkert
Copy link
Member

rikkert commented May 19, 2014

Much better, great.
How should we deal with this:

.pika-table td {
    width: 14.285714285714286%;
    padding: 0;
}

@ptjz
Copy link

ptjz commented Dec 6, 2016

Stumbled upon this issue, and it's still not hiding in iOS 10. Is there a decent workaround for this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants