mirror of
https://github.com/bitwarden/browser
synced 2025-12-18 09:13:33 +00:00
Split jslib into multiple modules (#363)
* Split jslib into multiple modules
This commit is contained in:
13
angular/src/directives/stop-click.directive.ts
Normal file
13
angular/src/directives/stop-click.directive.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
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