1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-10-19 07:35:48 +02:00
bitwarden-browser/src/angular/directives/stop-prop.directive.ts

14 lines
258 B
TypeScript
Raw Normal View History

import {
Directive,
HostListener,
} from '@angular/core';
@Directive({
selector: '[appStopProp]',
})
export class StopPropDirective {
@HostListener('click', ['$event']) onClick($event: MouseEvent) {
$event.stopPropagation();
}
}