Skip to content

Commit

Permalink
fix: photo popup closes when clicking X button (#1818)
Browse files Browse the repository at this point in the history
  • Loading branch information
TheSlimvReal authored Apr 12, 2023
1 parent 21b592c commit 3800e5c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
<app-dialog-close></app-dialog-close>
<app-dialog-close mat-dialog-close></app-dialog-close>
<img [src]="data.url" style="margin: 40px"/>
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { Component, Inject } from "@angular/core";
import { CommonModule } from "@angular/common";
import { MAT_DIALOG_DATA } from "@angular/material/dialog";
import { MAT_DIALOG_DATA, MatDialogModule } from "@angular/material/dialog";
import { DialogCloseComponent } from "../../../../../common-components/dialog-close/dialog-close.component";

@Component({
selector: "app-image-popup",
standalone: true,
imports: [CommonModule, DialogCloseComponent],
imports: [CommonModule, DialogCloseComponent, MatDialogModule],
templateUrl: "./image-popup.component.html",
styleUrls: ["./image-popup.component.scss"],
})
Expand Down

0 comments on commit 3800e5c

Please sign in to comment.