[SSE] Fix bug - locking tabs in co-editing mode

This commit is contained in:
Julia Svinareva 2020-01-25 15:18:27 +03:00 committed by Alexey Golubev
parent 55c8f61a17
commit dd3c38c054

View file

@ -185,7 +185,7 @@ define([
}, this),
'tab:move' : _.bind(function (selectTabs, index) {
me.tabBarScroll = {scrollLeft: me.tabbar.scrollX};
if (_.isUndefined(selectTabs) || _.isUndefined(index) || selectTabs === index) {
if (_.isUndefined(selectTabs) || _.isUndefined(index) || (selectTabs && selectTabs.length === 1 && selectTabs[0] === index)) {
return;
}
if (_.isArray(selectTabs)) {