Closed jontelm closed 6 years ago
Hey, thanks for the PR. Out of curiosity, what is your use case for this functionality?
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.
Thanks! :+1:
@jontelm This is currently available in the latest release candidate, would you mind testing out 2.0.0-rc.1
:+1:
Added event.preventDefault() to not let the event bubble up to the next component https://github.com/facebook/react/issues/11387