mirror of
https://github.com/ascribe/onion.git
synced 2025-02-14 21:10:27 +01: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);
|
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() {
|
onRouteChange() {
|
||||||
this.refs.navbar.state.navExpanded = false;
|
this.refs.navbar.state.navExpanded = false;
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user