From d6aeb9f679e70c7322320345093fd3ff3c03de04 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Mon, 18 Sep 2017 16:00:10 +0300 Subject: [PATCH] [SSE] Fix Bug 28388. --- apps/spreadsheeteditor/main/app/controller/DocumentHolder.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/spreadsheeteditor/main/app/controller/DocumentHolder.js b/apps/spreadsheeteditor/main/app/controller/DocumentHolder.js index 6026afb7b..4a75d61cb 100644 --- a/apps/spreadsheeteditor/main/app/controller/DocumentHolder.js +++ b/apps/spreadsheeteditor/main/app/controller/DocumentHolder.js @@ -1228,7 +1228,7 @@ define([ onSelectionChanged: function(info){ if (!this.mouse.isLeftButtonDown && !this.rangeSelectionMode && this.currentMenu && this.currentMenu.isVisible()){ - (this.permissions.isEdit) ? this.fillMenuProps(info, true, event) : this.fillViewMenuProps(info, true, event); + (this.permissions.isEdit) ? this.fillMenuProps(info, true) : this.fillViewMenuProps(info, true); } }, @@ -1503,7 +1503,7 @@ define([ }, showPopupMenu: function(menu, value, event){ - if (!_.isUndefined(menu) && menu !== null){ + if (!_.isUndefined(menu) && menu !== null && event){ Common.UI.Menu.Manager.hideAll(); var me = this,