mirror of
https://github.com/visgl/react-map-gl.git
synced 2026-01-18 15:54:22 +00:00
Remove double onClick invocation in useMapControl (#1567)
This commit is contained in:
parent
e07d865fe0
commit
5607700a21
@ -54,8 +54,8 @@ function onMount(thisRef) {
|
||||
if (props.captureClick) {
|
||||
evt.stopPropagation();
|
||||
}
|
||||
if (props.onClick) {
|
||||
props.onClick(evt, thisRef);
|
||||
if (props.onNativeClick) {
|
||||
props.onNativeClick(evt, thisRef);
|
||||
}
|
||||
},
|
||||
click: evt => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user