fix tabs_bar.js (#4436)

th-downstream
みたらしだんご 7 years ago committed by Eugen Rochko
parent 56e35ab6e7
commit b5d1e48916

@ -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)];
if (currentTab) {
currentTab.classList.remove('active');
}
const listener = debounce(() => {
nextTab.removeEventListener('transitionend', listener);

Loading…
Cancel
Save