Skip to content

Commit 29e5d3f

Browse files
committed
Merge pull request react-bootstrap#229 from alasdaircs/fix/navbar-collapse
Rename "navOpen" to "navExpanded"
2 parents 6c6d4cd + 3272d8b commit 29e5d3f

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/Navbar.jsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,12 @@ var Navbar = React.createClass({
5656
}
5757

5858
this.setState({
59-
navOpen: !this.state.navOpen
59+
navExpanded: !this.state.navExpanded
6060
});
6161
},
6262

63-
isNavOpen: function () {
64-
return this.props.navOpen != null ? this.props.navOpen : this.state.navOpen;
63+
isNavExpanded: function () {
64+
return this.props.navExpanded != null ? this.props.navExpanded : this.state.navExpanded;
6565
},
6666

6767
render: function () {
@@ -87,7 +87,7 @@ var Navbar = React.createClass({
8787
return cloneWithProps(child, {
8888
navbar: true,
8989
collapsable: this.props.toggleNavKey != null && this.props.toggleNavKey === child.props.key,
90-
expanded: this.props.toggleNavKey != null && this.props.toggleNavKey === child.props.key && this.isNavOpen(),
90+
expanded: this.props.toggleNavKey != null && this.props.toggleNavKey === child.props.key && this.isNavExpanded(),
9191
key: child.props.key,
9292
ref: child.props.ref
9393
});

0 commit comments

Comments
 (0)