How do you recommend to create a tooltip with the following:
Trigger: Hover
Exit: Click
and
Trigger: Click
Exit: Hover
Thank you!
Should be possible like this
Trigger: Hover
Exit: Click
tippy('button', {
onShow(instance) {
instance.set({ trigger: 'click' })
},
onHide(instance) {
instance.set({ trigger: tippy.defaults.trigger })
}
})
Trigger: Click
Exit: Hover
tippy('button', {
trigger: 'click',
onShow(instance) {
instance.set({ trigger: tippy.defaults.trigger })
},
onHide(instance) {
instance.set({ trigger: 'click' })
}
})
It works, thank you so much!
Did something changed? for some reason this stopped working after 4.2.1. I tried 4.3.0 and I still can't set click as trigger after tippy shows up.
Both examples still work fine for me on latest. Are you sure it's the versions and not other code?