fix(console): fix clipboard hostlistener (#534)

This commit is contained in:
Max Peintner 2020-07-28 12:48:06 +02:00 committed by GitHub
parent 461b7b23b1
commit da0df27679
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,7 +7,7 @@ export class CopyToClipboardDirective {
@Input() valueToCopy: string = '';
@Output() copiedValue: EventEmitter<string> = new EventEmitter();
@HostListener('document:click', ['$event.target']) onMouseEnter(): void {
@HostListener('click', ['$event.target']) onMouseEnter(): void {
this.copytoclipboard(this.valueToCopy);
}