igniteui-angular 22.0.7 → 22.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -8095,6 +8095,7 @@ function parseTriggers(triggers) {
|
|
|
8095
8095
|
return new Set((triggers ?? '').split(TooltipRegexes.triggers).filter((s) => s.trim()));
|
|
8096
8096
|
}
|
|
8097
8097
|
|
|
8098
|
+
const HOVER_SHOW_TRIGGERS = new Set(['mouseenter', 'mouseover', 'pointerenter', 'pointerover']);
|
|
8098
8099
|
/**
|
|
8099
8100
|
* **Ignite UI for Angular Tooltip Target** -
|
|
8100
8101
|
* [Documentation](https://www.infragistics.com/products/ignite-ui-angular/angular/components/tooltip)
|
|
@@ -8561,8 +8562,12 @@ class IgxTooltipTargetDirective extends IgxToggleActionDirective {
|
|
|
8561
8562
|
this._evaluateStickyState();
|
|
8562
8563
|
this._pendingShowTrigger = triggerEvent?.type ?? null;
|
|
8563
8564
|
this.target.timeoutId = setTimeout(() => {
|
|
8564
|
-
|
|
8565
|
+
const isHoverTrigger = this._pendingShowTrigger && HOVER_SHOW_TRIGGERS.has(this._pendingShowTrigger);
|
|
8565
8566
|
this._pendingShowTrigger = null;
|
|
8567
|
+
this.target.timeoutId = null;
|
|
8568
|
+
if (isHoverTrigger && !this.nativeElement.matches(':hover')) {
|
|
8569
|
+
return;
|
|
8570
|
+
}
|
|
8566
8571
|
this.target.open(this._mergedOverlaySettings);
|
|
8567
8572
|
}, withDelay ? this.showDelay : 0);
|
|
8568
8573
|
}
|