Skip to content
Snippets Groups Projects
Commit a46ba4a8 authored by みたらしだんご's avatar みたらしだんご Committed by Eugen Rochko
Browse files

fix tabs_bar.js (#4436)

parent c71874b8
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment