Skip to content

Commit

Permalink
fix: remove output signal write in overlay directive
Browse files Browse the repository at this point in the history
  • Loading branch information
atennert committed Oct 17, 2024
1 parent 9afd028 commit 3155573
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions libs/sketch/src/lib/components/overlay/overlay.directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -54,7 +55,8 @@ export class CdkOverlayDirective {
readonly offsetY = input<number>(0, {
alias: 'skCdkOverlayOffsetY',
});
readonly visible = output<boolean>({ alias: 'skCdkOverlayVisible' });
@Output('skCdkOverlayVisible')
readonly visible = new EventEmitter<boolean>();

private _overlayRef?: OverlayRef;
private _relatedElement?: HTMLElement =
Expand Down

0 comments on commit 3155573

Please sign in to comment.