allow progress bars to highlight box row still

This commit is contained in:
Kyle Spearrin 2018-11-15 15:33:52 -05:00
parent b48c484708
commit da47faca5c
1 changed files with 3 additions and 1 deletions

View File

@ -30,7 +30,9 @@ export class BoxRowDirective implements OnInit {
} }
@HostListener('click', ['$event']) onClick(event: Event) { @HostListener('click', ['$event']) onClick(event: Event) {
if (event.target !== this.el) { const target = event.target as HTMLElement;
if (target !== this.el && !target.classList.contains('progress') &&
!target.classList.contains('progress-bar')) {
return; return;
} }