diff --git a/src/app/directives/highlight.directive.ts b/src/app/directives/highlight.directive.ts index 878f773..71b1b03 100644 --- a/src/app/directives/highlight.directive.ts +++ b/src/app/directives/highlight.directive.ts @@ -15,6 +15,7 @@ export class HighlightDirective { private highlight(color: string, visibility: boolean = true) { if (visibility) { this.el.nativeElement.classList.add(color); + this.el.nativeElement.blur(); } else { this.el.nativeElement.classList.remove(color); this.el.nativeElement.blur();