mirror of
https://github.com/bitwarden/browser.git
synced 2024-10-19 07:35:48 +02:00
14 lines
258 B
TypeScript
14 lines
258 B
TypeScript
import {
|
|
Directive,
|
|
HostListener,
|
|
} from '@angular/core';
|
|
|
|
@Directive({
|
|
selector: '[appStopProp]',
|
|
})
|
|
export class StopPropDirective {
|
|
@HostListener('click', ['$event']) onClick($event: MouseEvent) {
|
|
$event.stopPropagation();
|
|
}
|
|
}
|