error toast also closes when you click on the blurred part
This commit is contained in:
parent
d70982c0b5
commit
1f460dc0a4
3 changed files with 8 additions and 2 deletions
|
|
@ -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="" />
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -19,6 +19,10 @@ export class ErrorToastComponent implements OnInit {
|
|||
});
|
||||
}
|
||||
|
||||
stopPropagation(event: MouseEvent) {
|
||||
event.stopPropagation();
|
||||
}
|
||||
|
||||
closeError() {
|
||||
this.errorService.clearError();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue