From 84c9698dd0f4f9e42e8a3fcc4b212e783ea8c5c8 Mon Sep 17 00:00:00 2001 From: Julia Svinareva Date: Wed, 23 Oct 2019 13:50:40 +0300 Subject: [PATCH] [SSE] Refactoring TabBar --- apps/common/main/lib/component/TabBar.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/common/main/lib/component/TabBar.js b/apps/common/main/lib/component/TabBar.js index 27d120875..c3da20071 100644 --- a/apps/common/main/lib/component/TabBar.js +++ b/apps/common/main/lib/component/TabBar.js @@ -328,7 +328,7 @@ define([ } else { $(event.target).parent().parent().find('li.mousemove').removeClass('mousemove right'); $(event.target).parent().addClass('mousemove'); - var name = event.target.parentElement.dataset.label, + var name = $(event.target).parent().data('label'), currentTab = _.findWhere(bar.tabs, {label: name}); if (!_.isUndefined(currentTab)) { me.drag.place = currentTab.sheetindex;