Browse Source

fix tabs_bar.js (#4436)

master
みたらしだんご 6 years ago
committed by Eugen Rochko
parent
commit
a46ba4a8f5
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      app/javascript/mastodon/features/ui/components/tabs_bar.js

+ 3
- 1
app/javascript/mastodon/features/ui/components/tabs_bar.js View File

@@ -48,7 +48,9 @@ export default class TabsBar extends React.Component {
const nextTab = tabs.find(tab => tab.contains(e.target));
const { props: { to } } = links[Array(...this.node.childNodes).indexOf(nextTab)];

currentTab.classList.remove('active');
if (currentTab) {
currentTab.classList.remove('active');
}

const listener = debounce(() => {
nextTab.removeEventListener('transitionend', listener);


Loading…
Cancel
Save