hekigan / vue-directive-tooltip

Vue.js tooltip directive. Easy to use, configure and style
https://hekigan.github.io/vue-directive-tooltip/
MIT License
173 stars 33 forks source link

The tooltip doesn't close on clicking outside when the Click trigger is applied. #50

Open jerome313 opened 4 years ago

jerome313 commented 4 years ago

Bug

Behaviour

Current: The tooltip popup should close when we click anywhere outside, according to the docs https://hekigan.github.io/vue-directive-tooltip/#/events However, this is not the case, even on the examples given on the documentation itself. This behavior can be seen on vue-directive-tooltip versions after 1.5.1

Expected: When using the Click trigger the tooltip should close when clicking outside. This issue can be seen here https://jsfiddle.net/p6jrwfyb/

Using the Focus trigger in place of Click seems to work. @hekigan can you please confirm this?