calebjacob / tooltipster

A jQuery tooltip plugin
MIT License
2.76k stars 482 forks source link

Prevent click propagation #798

Closed mrmagcore closed 4 years ago

mrmagcore commented 4 years ago

Is there any way to prevent propagation when tooltipster is set to open on click? I can't find any documentation about it. I am putting tooltipster on a div within a div. The parent div has a click handler, and I see no way to stop a click on the tooltipster div from propagating to the parent div.

louisameline commented 4 years ago

Hello, "hello", "please", "thank you" are always appreciated :) You'd have to bind a listener after you initialize Tooltipster, which would catch the click. Or you can configure your handler to ignore the click when it comes from the origin div.