Open brijsiyag opened 1 year ago
I got the same issue while trying to build something to hide tooltips on not-truncated texts. And I was not using 'delegate'.
onTrigger: (instance: Instance, event: Event) => {
if (this.isTruncated) {
instance.enable();
} else {
instance.disable();
}
this.tooltipOptions?.onTrigger?.(instance, event);
},
Bug description
onTrigger
is not triggered when a Tippy instance is disabled in delegate, butonUntrigger
works fine.Expected behavior
When a Tippy instance is disabled in delegate,
onTrigger
should still be triggered when the trigger event occurs on the element.Actual behavior
onTrigger
is not triggered when a Tippy instance is disabled in delegate, even though the trigger event occurs on the element.onUntrigger
works as expected when the mouse leaves the element.Steps to reproduce
Now observe mouseenter and mouseleave events.