support for toggling custom context menu (#1683)

* support for toggling custom context menu

* fix unit tests
This commit is contained in:
Denys Vuika
2017-03-03 09:25:08 +00:00
committed by Mario Romano
parent 4ca18bc8f9
commit 2e44550d7f
8 changed files with 30 additions and 14 deletions

View File

@@ -272,7 +272,7 @@ export class DocumentListComponent implements OnInit, OnChanges, AfterContentIni
@HostListener('contextmenu', ['$event'])
onShowContextMenu(e?: Event) {
if (e) {
if (e && this.contextMenuActions) {
e.preventDefault();
}
}