mirror of
https://github.com/bitwarden/clients.git
synced 2025-12-10 10:27:10 -06:00
9 lines
291 B
TypeScript
9 lines
291 B
TypeScript
export function StopClickDirective() {
|
|
// ref: https://stackoverflow.com/a/14165848/1090359
|
|
return (scope: ng.IScope, element: ng.IAugmentedJQuery, attrs: ng.IAttributes) => {
|
|
element[0].addEventListener('click', (e) => {
|
|
e.preventDefault();
|
|
});
|
|
};
|
|
}
|