diff --git a/apps/red-ui/src/app/modules/dossier-overview/components/file-attribute/file-attribute.component.ts b/apps/red-ui/src/app/modules/dossier-overview/components/file-attribute/file-attribute.component.ts index 906168c1d..505678b3c 100644 --- a/apps/red-ui/src/app/modules/dossier-overview/components/file-attribute/file-attribute.component.ts +++ b/apps/red-ui/src/app/modules/dossier-overview/components/file-attribute/file-attribute.component.ts @@ -1,4 +1,4 @@ -import { AsyncPipe, NgClass, NgIf, NgTemplateOutlet } from '@angular/common'; +import { AsyncPipe, NgClass, NgIf } from '@angular/common'; import { Component, computed, effect, HostListener, input, Input, OnDestroy } from '@angular/core'; import { AbstractControl, FormBuilder, FormsModule, ReactiveFormsModule, UntypedFormGroup, ValidatorFn } from '@angular/forms'; import { MatIconModule } from '@angular/material/icon'; @@ -42,7 +42,6 @@ import { ConfigService } from '../../config.service'; ReactiveFormsModule, DynamicInputComponent, CircleButtonComponent, - NgTemplateOutlet, TranslateModule, StopPropagationDirective, ], @@ -91,14 +90,11 @@ export class FileAttributeComponent extends BaseFormComponent implements OnDestr ); this.#subscriptions.add(sub2.subscribe()); - effect( - () => { - if (this.#shouldClose()) { - this.close(); - } - }, - { allowSignalWrites: true }, - ); + effect(() => { + if (this.#shouldClose()) { + this.close(); + } + }); } get isDate(): boolean { @@ -132,7 +128,6 @@ export class FileAttributeComponent extends BaseFormComponent implements OnDestr handleClick($event: MouseEvent) { $event.stopPropagation(); - $event.preventDefault(); } ngOnDestroy() {