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

When the picker is in a modal popup like MagnificPopup, the click handler on document are in conflict on Chrome/Linux. #249

Closed
wants to merge 1 commit into from

Conversation

vtabary
Copy link

@vtabary vtabary commented Oct 15, 2013

On Chrome/Linux, when the date picker is in a modal like MagnificPopup (http://dimsemenov.com/plugins/magnific-popup/), two events handler on $document for click are in conflict.

The method event.stopPropagation() in P.$root.on('click') is not sufficient, we have to prevent default behavior too with event.preventDefault().

…dler on document are in conflict on Chrome/Linux.
@vtabary
Copy link
Author

vtabary commented Oct 15, 2013

Patch tested on Chrome 30 / Ubuntu 13.04 and Firefox 24 / Ubuntu 13.04

Reproduced here : http://codepen.io/vtabary/pen/wIqAB

@simodima
Copy link

I've the same problem, please accept this PR

@adamaveray
Copy link

Agreed, having the same problem, and this fixes it perfectly. Please accept the PR!

@amsul
Copy link
Owner

amsul commented Nov 11, 2013

Alright guys.. I finally came around to taking a look at this. Seems like it’s the same issue as #120.

This isn’t an issue with pickadate – it’s actually a problem with MagnificPopup and jQuery mobile hogging the mousedown event and switching the focused element.

Although I am including this fix in the next release, this issue should be reported to the other projects as bugs.

Cheers!

@amsul amsul closed this in 57f388e Dec 5, 2013
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

Successfully merging this pull request may close these issues.

4 participants