This is an automated email from the ASF dual-hosted git repository.

scottyaslan pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/nifi.git


The following commit(s) were added to refs/heads/main by this push:
     new 8f85b58dc5 NIFI-13477: (#9075)
8f85b58dc5 is described below

commit 8f85b58dc5168a0105143497d95027e24bdaccf2
Author: Matt Gilman <[email protected]>
AuthorDate: Fri Jul 12 00:51:22 2024 -0400

    NIFI-13477: (#9075)
    
    - Refreshing the controller service listing after creation or deletion to 
ensure allowable values of other services is accurate.
    
    This closes #9075
---
 .../frontend/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<T> implements OnDestroy {
 
     private closeTimer = -1;
     private overlayRef: OverlayRef | null = null;
+    private overTip = false;
 
     constructor(
         private element: ElementRef<HTMLElement>,
@@ -47,7 +48,7 @@ export class NifiTooltipDirective<T> 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<T> 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;
         });
     }
 

Reply via email to