From 98b8ee89c12d16820441ea3680543d413d4ea0c0 Mon Sep 17 00:00:00 2001 From: yann300 Date: Wed, 3 Apr 2019 15:50:51 +0200 Subject: [PATCH] Update vertical-icons-component.js --- src/app/components/vertical-icons-component.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/components/vertical-icons-component.js b/src/app/components/vertical-icons-component.js index 4d883b0277..85d4da45c2 100644 --- a/src/app/components/vertical-icons-component.js +++ b/src/app/components/vertical-icons-component.js @@ -95,11 +95,11 @@ class VerticalIconComponent { let currentTitle = currentActive.getAttribute('title') currentActive.classList.toggle(`${css.active}`) if (currentTitle !== name) { - let activate = this.view.querySelector(`[title="${name}"]`) + let activate = this.view.querySelector(`[plugin="${name}"]`) if (activate) activate.classList.toggle(`${css.active}`) } } else { - let activate = this.view.querySelector(`[title="${name}"]`) + let activate = this.view.querySelector(`[plugin="${name}"]`) if (activate) activate.classList.toggle(`${css.active}`) } this.events.emit('showContent', name)