mirror of
https://github.com/ascribe/onion.git
synced 2024-06-28 16:48:04 +02:00
Add note for navBar state hack
This commit is contained in:
parent
5423f5dcd7
commit
5137fa01a9
|
@ -142,7 +142,9 @@ let Header = React.createClass({
|
|||
this.refs.dropdownbutton.setDropdownState(false);
|
||||
},
|
||||
|
||||
// On route change, close expanded navbar again
|
||||
// On route change, close expanded navbar again since react-bootstrap doesn't close
|
||||
// the collapsibleNav by itself on click. setState() isn't available on a ref so
|
||||
// doing this explicitly is the only way for now.
|
||||
onRouteChange() {
|
||||
this.refs.navbar.state.navExpanded = false;
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue
Block a user