From a505981d8925063eff4c4fb4cd2a85a5739ae428 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Wed, 16 Oct 2019 11:18:22 +0300 Subject: [PATCH] Fix Bug 43160 --- apps/common/main/lib/view/ReviewPopover.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/apps/common/main/lib/view/ReviewPopover.js b/apps/common/main/lib/view/ReviewPopover.js index a8ff64285..56c06bb6a 100644 --- a/apps/common/main/lib/view/ReviewPopover.js +++ b/apps/common/main/lib/view/ReviewPopover.js @@ -1014,6 +1014,8 @@ define([ }); } }, this); + if (this.emailMenu && this.emailMenu.rendered) + this.emailMenu.cmpEl.css('display', 'none'); }, isCommentsViewMouseOver: function () { @@ -1163,8 +1165,10 @@ define([ }, insertEmailToTextbox: function(str, left, right) { - var textBox = this.commentsView.getTextBox(), - val = textBox.val(); + var textBox = this.commentsView.getTextBox(); + if (!textBox) return; + + var val = textBox.val(); textBox.val(val.substring(0, left) + '+' + str + ' ' + val.substring(right+1, val.length)); setTimeout(function(){ textBox[0].selectionStart = textBox[0].selectionEnd = left + str.length + 2;