From 9aa6e65ae705629ae00bebd08623d9ab8cfecc05 Mon Sep 17 00:00:00 2001 From: yann300 Date: Mon, 22 May 2017 12:09:49 +0200 Subject: [PATCH] fix tab change event --- src/app/tabbed-menu.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/app/tabbed-menu.js b/src/app/tabbed-menu.js index 19880665a7..eb31c724c3 100644 --- a/src/app/tabbed-menu.js +++ b/src/app/tabbed-menu.js @@ -38,9 +38,7 @@ function tabbedMenu (rendererAPI, compilerEvent, appEvent) { if (!match) return var cls = match[0] if (!el.hasClass('active')) { - el.get(0).parentElement.querySelectorAll('li').forEach(function (li) { - li.classList.remove('active') - }) + el.parent().find('li').removeClass('active') $('#optionViews').attr('class', '').addClass(cls) el.addClass('active') }