From 315557385e2f6f6dabd5017a0ee7f6e0dfcd2c1d Mon Sep 17 00:00:00 2001 From: Andreas Tennert Date: Thu, 17 Oct 2024 10:29:32 +0200 Subject: [PATCH] fix: remove output signal write in overlay directive --- libs/sketch/src/lib/components/overlay/overlay.directive.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/libs/sketch/src/lib/components/overlay/overlay.directive.ts b/libs/sketch/src/lib/components/overlay/overlay.directive.ts index 3a73b0b..90d2b61 100644 --- a/libs/sketch/src/lib/components/overlay/overlay.directive.ts +++ b/libs/sketch/src/lib/components/overlay/overlay.directive.ts @@ -6,9 +6,10 @@ import { Directive, effect, ElementRef, + EventEmitter, inject, input, - output, + Output, } from '@angular/core'; import { takeUntilDestroyed, toSignal } from '@angular/core/rxjs-interop'; import { debounceTime, fromEvent, merge } from 'rxjs'; @@ -54,7 +55,8 @@ export class CdkOverlayDirective { readonly offsetY = input(0, { alias: 'skCdkOverlayOffsetY', }); - readonly visible = output({ alias: 'skCdkOverlayVisible' }); + @Output('skCdkOverlayVisible') + readonly visible = new EventEmitter(); private _overlayRef?: OverlayRef; private _relatedElement?: HTMLElement =