themustafaomar / jsvectormap

A lightweight JavaScript library for creating interactive maps and pretty data visualization.
https://jvm-docs.vercel.app
MIT License
398 stars 80 forks source link

TypeError: Cannot read properties of undefined (reading 'text') #117

Closed wkwhwh closed 1 year ago

wkwhwh commented 1 year ago

When using the option:

showTooltip: false

the following error is displayed on the browser console: Uncaught TypeError: Cannot read properties of undefined (reading 'text')

related to the setupElementEvents.js mouseover event

if (event.type === 'mouseover') { data.element.hover(true) map.tooltip.text(data.tooltipText) map._emit(data.event, [event, map.tooltip, data.code])

themustafaomar commented 1 year ago

Thanks for reporting this issue, the fix will be available by the next week in v1.5.2