1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-30 13:03:53 +01:00

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

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;
} }