markmarkoh / datamaps

Customizable SVG map visualizations for the web in a single Javascript file using D3.js
http://datamaps.github.io
MIT License
3.78k stars 1.01k forks source link

choropleth map color not updating when highlight on hover set to true #531

Open ruppo-912116 opened 3 years ago

ruppo-912116 commented 3 years ago

When highlight on hover is set to true, and the map is updated using updateChoropleth. for example, i displayed the choropleth map and on selecting a country from the map, the country changes its colorto something else(e.g. green). if the pointer stays on the country where it is clicked, it shows the changed color(green) until the cursor stays on that country but when the mouse pointer leaves the country, the color doesnot stay, but if the pointer is removed quickly from that country after clicking, everything works fine and disabling the highlight on hover solves the issue.