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

adeded event.preventDefault() to touchEnd #191

Merged
merged 1 commit into from
Apr 26, 2018

Conversation

jontelm
Copy link
Contributor

@jontelm jontelm commented Apr 19, 2018

Added event.preventDefault() to not let the event bubble up to the next component facebook/react#11387

@AlanFoster
Copy link
Member

Hey, thanks for the PR. Out of curiosity, what is your use case for this functionality?

@jontelm
Copy link
Contributor Author

jontelm commented Apr 19, 2018

After the user have chosen the range we open a modal on top of the calendar for the user to select from a list of options how they want to mark that range (Available, Unavailable, Primary Booked, Booked).

The problem we had without this event.preventDefault() is that the modal got a click / touch on the options directly when it opens so it was closed again.

@AlanFoster AlanFoster merged commit fa06e53 into onefinestay:master Apr 26, 2018
@AlanFoster
Copy link
Member

Thanks! 👍

@AlanFoster
Copy link
Member

@jontelm This is currently available in the latest release candidate, would you mind testing out 2.0.0-rc.1 👍

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.

2 participants