error toast also closes when you click on the blurred part

This commit is contained in:
Chneemann 2024-08-09 18:49:45 +02:00
parent d70982c0b5
commit 1f460dc0a4
3 changed files with 8 additions and 2 deletions

View file

@ -1,5 +1,5 @@
<div class="overlay">
<section class="slide-in-right">
<div class="overlay" (click)="closeError()">
<section class="slide-in-right" (click)="stopPropagation($event)">
<div class="left"></div>
<div class="content">
<img src="./../../../../assets/img/attention.svg" alt="" />

View file

@ -109,6 +109,8 @@ section {
}
.left {
width: 100%;
height: 38px;
border-top-left-radius: 20px;
border-top-right-radius: 20px;
border-bottom-left-radius: 0;

View file

@ -19,6 +19,10 @@ export class ErrorToastComponent implements OnInit {
});
}
stopPropagation(event: MouseEvent) {
event.stopPropagation();
}
closeError() {
this.errorService.clearError();
}