Fix Popup to Don't Interfere Other Component Interactions
This commit is contained in:
1 parent
3a415a2525
commit
35d20eab76
3 files changed
+4
-4
No files matched your search
@@ -222,6 +222,7 @@ export class Dropdown implements OnInit {
|
||||
if (!this.element.nativeElement.contains(event.target) && !this.wasInside) {
|
||||
this.close();
|
||||
}
|
||||
|
||||
this.wasInside = false;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,12 +1,11 @@
|
||||
<div class="popup-backdrop" [class.center]="isCenter" (click)="onClose()">
|
||||
<div class="popup-backdrop" [class.center]="isCenter" (click)="$event.target === $event.currentTarget && onClose()">
|
||||
<div class="popup-container"
|
||||
[class]="'variant-' + variant()"
|
||||
[class.custom-pos]="!isCenter"
|
||||
[style.top]="customStyle.top"
|
||||
[style.left]="customStyle.left"
|
||||
[style.right]="customStyle.right"
|
||||
[style.bottom]="customStyle.bottom"
|
||||
(click)="$event.stopPropagation()">
|
||||
[style.bottom]="customStyle.bottom">
|
||||
<header class="popup-header">
|
||||
<div class="header-left">
|
||||
<ng-content select="[header-left]"></ng-content>
|
||||
|
||||
Reference in new issue
Block a user