mirror of
https://github.com/bitwarden/browser
synced 2025-12-14 23:33:31 +00:00
Move to libs
This commit is contained in:
10
libs/angular/src/directives/stop-click.directive.ts
Normal file
10
libs/angular/src/directives/stop-click.directive.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import { Directive, HostListener } from "@angular/core";
|
||||
|
||||
@Directive({
|
||||
selector: "[appStopClick]",
|
||||
})
|
||||
export class StopClickDirective {
|
||||
@HostListener("click", ["$event"]) onClick($event: MouseEvent) {
|
||||
$event.preventDefault();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user