Skip to content

Commit

Permalink
Merge pull request ethereum#1800 from ethereum/yann300-patch-18
Browse files Browse the repository at this point in the history
Update vertical-icons-component.js
  • Loading branch information
yann300 authored Apr 4, 2019
2 parents 94f0ec5 + 98b8ee8 commit aeb1e34
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/components/vertical-icons-component.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit aeb1e34

Please sign in to comment.