stevenbenner / jquery-powertip

:speech_balloon: A jQuery plugin that creates hover tooltips.
https://stevenbenner.github.io/jquery-powertip/
MIT License
821 stars 137 forks source link

clicking inside powertip closing the powertip #124

Closed giswebmaster closed 7 years ago

giswebmaster commented 10 years ago

I am having a problem with an imagemap I have placed inside a powertip module. whenever I click it, the powertip closes. this does not occur when clicking any other links inside the window. the only difference is this href is pointing to a javascript function that subsequently calls other functions which should update another

inside the powertip. is there a way to prevent powertip from closing when this happens or is this another bug?

giswebmaster commented 10 years ago

last comment should have <div> after "another" and before "inside"

stevenbenner commented 10 years ago

This is really hard to diagnose without seeing an example.

My best guess is that this is a quirk with image maps or that there is another (invisible) element above the hover element.

PowerTip will close if the document receives a click and the event.target is not the element that the tooltip is open for. (see: tooltipcontroller.js). It is possible that in this case the imagemap element is actually the event target.

stevenbenner commented 7 years ago

Closing this issue because there has been no additional information given for some time. Please comment here if you can reproduce the problem and give me information or an example to help me diagnose it in the future.