mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-31 17:38:28 +00:00
[ACA] contextmenu - document click event breaks implementation in FF (#593)
* listen event from body element * add event parameter
This commit is contained in:
committed by
Denys Vuika
parent
08917e862c
commit
d607618920
@@ -15,7 +15,7 @@ export class OutsideEventDirective implements OnInit, OnDestroy {
|
||||
|
||||
ngOnInit() {
|
||||
this.subscriptions = this.subscriptions.concat([
|
||||
fromEvent(document, 'click')
|
||||
fromEvent(document.body, 'click')
|
||||
.pipe(delay(1))
|
||||
.subscribe(() => this.clickOutside.next())
|
||||
]);
|
||||
|
Reference in New Issue
Block a user