diff --git a/lib/components/tab.js b/lib/components/tab.js index 3187c37f..a51eb8d1 100644 --- a/lib/components/tab.js +++ b/lib/components/tab.js @@ -34,10 +34,8 @@ export default class Tab extends Component { const isLeftClick = event.nativeEvent.which === 1; const isMiddleClick = event.nativeEvent.which === 2; - if (isLeftClick) { - if (this.props.isActive === null) { - this.props.onSelect(); - } + if (isLeftClick && !this.props.isActive) { + this.props.onSelect(); } else if (isMiddleClick) { this.props.onClose(); }