diff --git a/libs/common-docs/src/directives/img-hover.directive.ts b/libs/common-docs/src/directives/img-hover.directive.ts index f2c501c00..37a250d95 100644 --- a/libs/common-docs/src/directives/img-hover.directive.ts +++ b/libs/common-docs/src/directives/img-hover.directive.ts @@ -19,7 +19,7 @@ export class ImgHoverDirective { this.elementRef.nativeElement.getElementsByTagName('img')[0].setAttribute('src', this.defaultSrc); } - @HostListener('mouseover') + @HostListener('mouseover',['$event']) onMouseOver(event: MouseEvent) { event.preventDefault(); if (!this.activeSrc || this.check) {