diff --git a/console/src/app/directives/copy-to-clipboard/copy-to-clipboard.directive.ts b/console/src/app/directives/copy-to-clipboard/copy-to-clipboard.directive.ts index d27fcb1d06..cc17447714 100644 --- a/console/src/app/directives/copy-to-clipboard/copy-to-clipboard.directive.ts +++ b/console/src/app/directives/copy-to-clipboard/copy-to-clipboard.directive.ts @@ -7,7 +7,7 @@ export class CopyToClipboardDirective { @Input() valueToCopy: string = ''; @Output() copiedValue: EventEmitter = new EventEmitter(); - @HostListener('document:click', ['$event.target']) onMouseEnter(): void { + @HostListener('click', ['$event.target']) onMouseEnter(): void { this.copytoclipboard(this.valueToCopy); }