Skip to content

Commit 02f1fec

Browse files
jquenseAlexKVal
authored andcommittedAug 28, 2015
[fixed] allow null activeKey (empty) selection
fixes react-bootstrap#1227 I believe
1 parent bdf7ddb commit 02f1fec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/Tabs.js

+1-1
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)