calebjacob / tooltipster

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

Weird default behavior for trigger: 'click' #782

Closed Zamiell closed 4 years ago

Zamiell commented 4 years ago

Hello and thanks for the excellent library.

I'm using tooltipster v4.2.5.

If you create a tooltipster tooltip with the following options:

{
    trigger: 'click',
    interactive: true,
}

Some weird default behavior will occur.

1) If I click down outside the tooltip, and click up outside the tooltip, the tooltip will close. This appears to be the correct behavior. ✅ 2) If I click down inside the tooltip, and click up inside the tooltip, the tooltip will not close. This appears to be the correct behavior. ✅ 3) If I click down outside the toolip, and click up inside the tooltip, the tooltip will close. I'd lean towards this not being the correct behavior, but I'm unsure. ❓ 4) If I click down inside the tooltip, and click up outside the tooltip, the tooltip will close. This appears to be the wrong behavior. ❌

For example, consider the use case of an interactive tooltip with a