From b320f77ee002be291d8fd2e04649543882f1f554 Mon Sep 17 00:00:00 2001
From: sebo <sebastian.bergandy@external.mgm-cp.com>
Date: Tue, 11 Feb 2025 09:40:15 +0100
Subject: [PATCH] OZG-7666 remove host listener

---
 .../src/lib/tooltip/tooltip.directive.ts          | 15 +++------------
 1 file changed, 3 insertions(+), 12 deletions(-)

diff --git a/alfa-client/libs/design-system/src/lib/tooltip/tooltip.directive.ts b/alfa-client/libs/design-system/src/lib/tooltip/tooltip.directive.ts
index bf7ca48ded..ad238fc30e 100644
--- a/alfa-client/libs/design-system/src/lib/tooltip/tooltip.directive.ts
+++ b/alfa-client/libs/design-system/src/lib/tooltip/tooltip.directive.ts
@@ -23,17 +23,7 @@
  */
 import { isEscapeKey, isNotNull } from '@alfa-client/tech-shared';
 import { InteractivityChecker } from '@angular/cdk/a11y';
-import {
-  ComponentRef,
-  Directive,
-  ElementRef,
-  HostListener,
-  inject,
-  Input,
-  OnDestroy,
-  Renderer2,
-  ViewContainerRef,
-} from '@angular/core';
+import { ComponentRef, Directive, ElementRef, HostListener, inject, Input, OnDestroy, Renderer2, ViewContainerRef, } from '@angular/core';
 import { isEmpty, isNull, uniqueId } from 'lodash-es';
 import { TooltipComponent } from './tooltip.component';
 
@@ -41,6 +31,7 @@ export enum TooltipPosition {
   ABOVE = 'above',
   BELOW = 'below',
 }
+
 const OUTLINE_INDENT = 4; // Outline offset (2) + outline width (2)
 type TooltipAriaType = 'aria-describedby' | 'aria-labelledby';
 
@@ -60,6 +51,7 @@ export class TooltipDirective implements OnDestroy {
 
     this.createTooltip(value);
   }
+
   @Input() tooltipPosition: TooltipPosition = TooltipPosition.BELOW;
   @Input() tooltipAriaType: TooltipAriaType = 'aria-describedby';
 
@@ -93,7 +85,6 @@ export class TooltipDirective implements OnDestroy {
 
   @HostListener('mouseleave')
   @HostListener('focusout')
-  @HostListener('window:resize')
   hideTooltip(): void {
     this.hide();
   }
-- 
GitLab