Skip to content

Commit

Permalink
Merge pull request #109 from DanielHabenicht/master
Browse files Browse the repository at this point in the history
fix(Clipboard Directive): Added Argument to onClick Function
  • Loading branch information
maxisam authored Jan 15, 2018
2 parents d53a7dc + d1f7556 commit 17d7393
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/clipboard.directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export class ClipboardDirective implements OnInit, OnDestroy {
this.clipboardSrv.destroy();
}

@HostListener('click', ['$event.target']) public onClick() {
@HostListener('click', ['$event.target']) public onClick(event: Event) {
if (!this.clipboardSrv.isSupported) {
this.handleResult(false, undefined);
} else if (this.targetElm && this.clipboardSrv.isTargetValid(this.targetElm)) {
Expand Down

0 comments on commit 17d7393

Please sign in to comment.