-
Notifications
You must be signed in to change notification settings - Fork 44
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
[3.1.0] Click on v-map fires MapMouseEvent and MouseEvent #866
Comments
Does |
From Vue docs on
|
This won't solve the issue itself, but just trying to offer a workaround. What's the use case for the @click on v-map, and what's the secondary click used for? |
I have a workaround:
This is possible because mapbox already provides the native event as Use case for My best guess is that |
@vinayakkulkarni do you agree with my assessment?
|
When listening for a click on the map, I’m expecting the event to be
MapMouseEvent
, butMouseEvent
also fires, and typescript complains that I cannot assign one to the other.Events in console:
Typescript warning:
To prevent the
MouseEvent
from firing, I am stopping propagation on theoriginalEvent
, but this doesn’t solve my TS issue:The text was updated successfully, but these errors were encountered: