Skip to content

Commit

Permalink
Fixed #9814 - Strange behavior using context menu on Safari
Browse files Browse the repository at this point in the history
  • Loading branch information
yigitfindikli committed Jan 25, 2021
1 parent 50035d9 commit 5adad5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/components/contextmenu/contextmenu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ export class ContextMenu implements AfterViewInit, OnDestroy {
const documentTarget: any = this.el ? this.el.nativeElement.ownerDocument : 'document';

this.documentClickListener = this.renderer.listen(documentTarget, 'click', (event) => {
if (this.containerViewChild.nativeElement.offsetParent && this.isOutsideClicked(event) && event.button !== 2) {
if (this.containerViewChild.nativeElement.offsetParent && this.isOutsideClicked(event) && !event.ctrlKey && event.button !== 2) {
this.hide();
}
});
Expand Down

0 comments on commit 5adad5b

Please sign in to comment.