Skip to content

Commit

Permalink
fix(list-view): prevent showing detail when checking item
Browse files Browse the repository at this point in the history
  • Loading branch information
ElonH committed Jun 15, 2020
1 parent 2015e2f commit a2a4fa2
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/app/pages/manager/fileMode/listView/listView.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ import { ClipboardService } from '../../clipboard/clipboard.service';
(event)="eventEmitted($event)"
>
<ng-template let-row>
<td (dblclick)="$event.stopPropagation()" (click)="toggle(row); $event.preventDefault()">
<td (dblclick)="$event.stopPropagation()" (click)="toggle(row); stopEvent($event)">
<nb-checkbox [(checked)]="row.check" (checkedChange)="onToggle()"> </nb-checkbox>
</td>
<td (click)="toggle(row)" (dblclick)="$event.stopPropagation()">
<td (click)="toggle(row); stopEvent($event)" (dblclick)="stopEvent($event)">
<nb-icon
*ngIf="row.ManipulateIcon"
class="manipulation"
Expand Down Expand Up @@ -189,4 +189,9 @@ export class ListViewComponent implements OnInit, OnDestroy {
this.listScrb.unsubscribe();
this.loading();
}

stopEvent($event: any) {
$event.stopPropagation();
$event.preventDefault();
}
}

0 comments on commit a2a4fa2

Please sign in to comment.