Revision 57341
Added by Konstantina Galouni over 4 years ago
modules/uoa-services-library/trunk/ng-openaire-library/src/app/utils/modal/click-outside-or-esc.directive.ts | ||
---|---|---|
59 | 59 |
|
60 | 60 |
onGlobalClick(event: MouseEvent) { |
61 | 61 |
if (event instanceof MouseEvent && this.listening === true) { |
62 |
if (event.target.id != this.targetId) { |
|
62 |
console.info(typeof event.target); |
|
63 |
console.info(event.target); |
|
64 |
if (event.target['id'] != this.targetId) { |
|
63 | 65 |
this.clickOutside.emit({ |
64 | 66 |
target: (event.target || null), |
65 | 67 |
value: false |
Also available in: Unified diff
[Trunk | Library]: click-outside-or-esc.directive.ts: [Bug Fix] Property 'id' does not exist on type 'EventTarget' - tricked with ['id'] instead of .id.