File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 } ) ;
You can’t perform that action at this time.
0 commit comments