From 8f85b58dc5168a0105143497d95027e24bdaccf2 Mon Sep 17 00:00:00 2001 From: Matt Gilman Date: Fri, 12 Jul 2024 00:51:22 -0400 Subject: [PATCH] NIFI-13477: (#9075) - Refreshing the controller service listing after creation or deletion to ensure allowable values of other services is accurate. This closes #9075 --- .../libs/shared/src/directives/nifi-tooltip.directive.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/nifi-frontend/src/main/frontend/libs/shared/src/directives/nifi-tooltip.directive.ts b/nifi-frontend/src/main/frontend/libs/shared/src/directives/nifi-tooltip.directive.ts index a988c17cc4..579ed40cde 100644 --- a/nifi-frontend/src/main/frontend/libs/shared/src/directives/nifi-tooltip.directive.ts +++ b/nifi-frontend/src/main/frontend/libs/shared/src/directives/nifi-tooltip.directive.ts @@ -32,6 +32,7 @@ export class NifiTooltipDirective implements OnDestroy { private closeTimer = -1; private overlayRef: OverlayRef | null = null; + private overTip = false; constructor( private element: ElementRef, @@ -47,7 +48,7 @@ export class NifiTooltipDirective implements OnDestroy { @HostListener('mouseleave') mouseLeave() { - if (this.overlayRef?.hasAttached()) { + if (this.overlayRef?.hasAttached() && !this.overTip) { if (this.delayClose) { this.closeTimer = window.setTimeout(() => { this.overlayRef?.detach(); @@ -96,10 +97,13 @@ export class NifiTooltipDirective implements OnDestroy { window.clearTimeout(this.closeTimer); this.closeTimer = -1; } + + this.overTip = true; }); tooltipReference.location.nativeElement.addEventListener('mouseleave', () => { this.overlayRef?.detach(); this.closeTimer = -1; + this.overTip = false; }); }