react-router-bootstrap

Nav not collapsing when a NavItem is selected on mobile devices

不羁的心 提交于 2019-12-11 17:35:57
问题 I'm building a navbar that is expected to be responsive when it switches to mobile devices. In other words, collapse when mobile, then when the navitems are selected / clicked, it should route to the path and collapse all navitems to a toggle-style bar. However, below a snapshot of what I got and it's associated code: CODE: render() { return ( !this.state.isAuthenticating && <div className="App"> <Navbar fluid collapseOnSelect> <Navbar.Header> <Navbar.Brand> <LinkContainer to="/"> <a> <img