Skip to content

Commit 9dd5d84

Browse files
committed
fix(ngx-material-contacts): stop propagation on click within a cell
1 parent e0966c0 commit 9dd5d84

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

demo/src/app/home/ngx-material-contacts/ngx-material-contacts.component.html

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,20 @@
1010
{{title}}
1111
</ng-template>
1212
<span class="fill-remaining"></span>
13-
<button *ngIf="!readonly" fxHide.xs mat-fab color="accent" class="fab-add" matTooltip="add new contact">
13+
<button *ngIf="!readonly"
14+
fxHide.xs
15+
mat-fab
16+
color="accent"
17+
class="fab-add"
18+
matTooltip="add new contact"
19+
(click)="openAddDialogContainer()">
1420
<mat-icon>add</mat-icon>
1521
</button>
16-
<button *ngIf="!readonly" fxHide fxShow.xs mat-icon-button matTooltip="add new contact">
22+
<button *ngIf="!readonly" fxHide
23+
fxShow.xs
24+
mat-icon-button
25+
matTooltip="add new contact"
26+
(click)="openAddDialogContainer()">
1727
<mat-icon>add</mat-icon>
1828
</button>
1929
</mat-toolbar>
@@ -63,7 +73,9 @@
6373
<ng-container *ngIf="!readonly" matColumnDef="more">
6474
<mat-header-cell *matHeaderCellDef class="cell-shrink-more">
6575
</mat-header-cell>
66-
<mat-cell *matCellDef="let element" class="cell-shrink-more">
76+
<mat-cell *matCellDef="let element"
77+
class="cell-shrink-more"
78+
(click)="$event.stopPropagation()">
6779
<button mat-icon-button
6880
[matMenuTriggerFor]="posXMenu"
6981
class="mat-24"

0 commit comments

Comments
 (0)