Skip to content

Commit

Permalink
[fixed] allow null activeKey (empty) selection
Browse files Browse the repository at this point in the history
fixes react-bootstrap#1227 I believe
  • Loading branch information
jquense authored and AlexKVal committed Aug 28, 2015
1 parent bdf7ddb commit 02f1fec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Tabs.js
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ const Tabs = React.createClass({
},

getActiveKey() {
return this.props.activeKey != null ? this.props.activeKey : this.state.activeKey;
return this.props.activeKey !== undefined ? this.props.activeKey : this.state.activeKey;
},

renderPane(child, index) {
Expand Down

0 comments on commit 02f1fec

Please sign in to comment.