VictorCazanave / react-svg-map

A set of React.js components to display an interactive SVG map
https://victorcazanave.github.io/react-svg-map/
MIT License
229 stars 48 forks source link

Can we get onLocationClick to CheckboxSVGMap #50

Closed pkocak closed 3 years ago

pkocak commented 3 years ago

I have tried onLocationFocus and onLocationBlur as provided but they create some bugs in my project. It would be perfect if i can get onLocationClick

VictorCazanave commented 3 years ago

Can you use onChange instead? Currently onLocationClick of SVGMap is used by CheckboxSVGMap to toggle the location, then calls onChange if provided.

pkocak commented 3 years ago

Thanks for the reply. I'll give it a try :)

VictorCazanave commented 3 years ago

@pkocak if your issue is not fixed, feel free to re-open it.