Click event: revert document:click
This commit is contained in:
parent
7e9db1d0de
commit
0358887d4f
|
@ -13,7 +13,7 @@ export class ClickOutsideOrEsc {
|
||||||
|
|
||||||
constructor(private elementRef: ElementRef) {}
|
constructor(private elementRef: ElementRef) {}
|
||||||
|
|
||||||
@HostListener('click', ['$event'])
|
@HostListener('document:click', ['$event'])
|
||||||
click(event) {
|
click(event) {
|
||||||
if(event.isTrusted) {
|
if(event.isTrusted) {
|
||||||
this.clickOutside.emit({
|
this.clickOutside.emit({
|
||||||
|
|
Loading…
Reference in New Issue