[SSE] Bug 24245

This commit is contained in:
Julia Radzhabova 2020-06-03 13:10:31 +03:00
parent dabb2cea37
commit 33ec257571
2 changed files with 3 additions and 3 deletions

View file

@ -225,7 +225,7 @@ define([
} }
} }
} }
!tab.disabled && Common.NotificationCenter.trigger('edit:complete', this.bar); !tab.disabled && Common.NotificationCenter.trigger('edit:complete', 'tab');
}, this), }, this),
dblclick: $.proxy(function() { dblclick: $.proxy(function() {
this.trigger('tab:dblclick', this, this.tabs.indexOf(tab), tab); this.trigger('tab:dblclick', this, this.tabs.indexOf(tab), tab);

View file

@ -3108,8 +3108,8 @@ define([
var me = this; var me = this;
Common.NotificationCenter.on({ Common.NotificationCenter.on({
'edit:complete': function () { 'edit:complete': function (cmp) {
if (me.api && me.modeAlwaysSetStyle) { if (me.api && me.modeAlwaysSetStyle && cmp!=='tab') {
me.api.asc_formatPainter(AscCommon.c_oAscFormatPainterState.kOff); me.api.asc_formatPainter(AscCommon.c_oAscFormatPainterState.kOff);
me.toolbar.btnCopyStyle.toggle(false, true); me.toolbar.btnCopyStyle.toggle(false, true);
me.modeAlwaysSetStyle = false; me.modeAlwaysSetStyle = false;