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
Click on polyline also triggers map's click handler, although click on marker and v0.7.7 do not #5313
Comments
Calling |
Thanks for the quick reply and sorry for the noise! |
No prob :-) |
This was referenced Jun 18, 2018
mattbuff-nynhp
added a commit
to NYNatHeritage/Data_Explorer
that referenced
this issue
Apr 1, 2019
Clicking on a leaflet map now fires click event on all layers and the base map. See: rstudio/leaflet#561 Leaflet/Leaflet#5313 Leaflet/Leaflet#3307
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Using Leaflet v1.0.3 release, e.g. with Firefox 51.0.1 & Chrome 55:
If a polyline and the map have click event handlers,
both event handler functions will be called when polyline got clicked by user.
Expected behavior is that only the polyline's handler function is getting called.
This is expected, because the last version I tried (Leaflet v0.7.7 release) shows
that behavior and even Leaflet v1.0.3 release acts this way, if a marker is clicked
instead of a polyline.
Please take a look at this example: https://jsfiddle.net/rno4htgr/18/
The text was updated successfully, but these errors were encountered: