-
-
Save AlejandroPerezMartin/ecd014cb8104c235b582f3a3e1649cf7 to your computer and use it in GitHub Desktop.
@AlejandroPerezMartin is this available under MIT license, no default license for github gists unlike stackoverflow
no license @AbhinavAtul, use it the way you want! it's a really simple script so I don't think it's needed
Works great, thanks !
Please @AlejandroPerezMartin how am I going to use this Directive?
Can I implement it for Angular 8?
Please @AlejandroPerezMartin how am I going to use this Directive?
Can I implement it for Angular 8?
I'm not using Angular anymore so I'm not sure, but I believe you can use a previous version of this gist: https://gist.github.com/AlejandroPerezMartin/ecd014cb8104c235b582f3a3e1649cf7/0bff5561689e5cbbfa878fab3bc2ec716e58eb58
ok thanks
very nice!
In my case, it has to be wrapped with setTimout() like this otherwise the timing messes up with it to function properly:
@HostListener('click')
onClick() {
setTimeout(() => this.elRef.nativeElement.blur());
}
Thanks👌
updated gist, thanks @vitaliidasaev