Skip to content

Commit 8b1f2a1

Browse files
committed
Merge pull request react-bootstrap#1244 from react-bootstrap/jquense-patch-2
[fixed] allow null activeKey (empty) selection
2 parents 1173725 + 3ceb7af commit 8b1f2a1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Tabs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ const Tabs = React.createClass({
196196
},
197197

198198
getActiveKey() {
199-
return this.props.activeKey != null ? this.props.activeKey : this.state.activeKey;
199+
return this.props.activeKey !== undefined ? this.props.activeKey : this.state.activeKey;
200200
},
201201

202202
renderPane(child, index) {

0 commit comments

Comments
 (0)