{"action":"created","issue":{"url":"https://api.github.com/repos/react-bootstrap/react-bootstrap/issues/1301","repository_url":"https://api.github.com/repos/react-bootstrap/react-bootstrap","labels_url":"https://api.github.com/repos/react-bootstrap/react-bootstrap/issues/1301/labels{/name}","comments_url":"https://api.github.com/repos/react-bootstrap/react-bootstrap/issues/1301/comments","events_url":"https://api.github.com/repos/react-bootstrap/react-bootstrap/issues/1301/events","html_url":"https://github.com/react-bootstrap/react-bootstrap/issues/1301","id":105333083,"number":1301,"title":"Add option to collapse Navbar when item is selected","user":{"login":"JCzz","id":1861398,"avatar_url":"https://avatars.githubusercontent.com/u/1861398?v=3","gravatar_id":"","url":"https://api.github.com/users/JCzz","html_url":"https://github.com/JCzz","followers_url":"https://api.github.com/users/JCzz/followers","following_url":"https://api.github.com/users/JCzz/following{/other_user}","gists_url":"https://api.github.com/users/JCzz/gists{/gist_id}","starred_url":"https://api.github.com/users/JCzz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JCzz/subscriptions","organizations_url":"https://api.github.com/users/JCzz/orgs","repos_url":"https://api.github.com/users/JCzz/repos","events_url":"https://api.github.com/users/JCzz/events{/privacy}","received_events_url":"https://api.github.com/users/JCzz/received_events","type":"User","site_admin":false},"labels":[{"id":72397117,"url":"https://api.github.com/repos/react-bootstrap/react-bootstrap/labels/enhancement","name":"enhancement","color":"84b6eb","default":true},{"id":150106936,"url":"https://api.github.com/repos/react-bootstrap/react-bootstrap/labels/help%20wanted","name":"help wanted","color":"159818","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":27,"created_at":"2015-09-08T08:57:13Z","updated_at":"2016-10-27T21:25:37Z","closed_at":"2016-10-27T21:25:37Z","body":"How do you make the menu collapse after item is selected?\r\n\r\n    import React from 'react';\r\n    import {Navbar, Nav, NavItem, NavDropdown, DropdownButton, MenuItem, CollapsibleNav} from 'react-bootstrap';\r\n\r\n    export default class App extends React.Component {\r\n\r\n    constructor(props) {\r\n      super(props);\r\n      this.onSelect = this.onSelect.bind(this);\r\n      this.toggleNav = this.toggleNav.bind(this);\r\n      // this.state = {navExpanded: false};\r\n    }\r\n\r\n    onSelect(e){\r\n        console.log('OnSelect')\r\n        // console.log(this.state.navExpanded);\r\n        // this.setState({navExpanded: false});\r\n    }\r\n\r\n    toggleNav(){console.log('toggle...')};\r\n\r\n    // <Navbar inverse fixedTop toggleNavKey={0} navExpanded={this.state.navExpanded} onToggle={() => this.toggleNav()}>\r\n    // <Navbar inverse fixedTop toggleNavKey={0} navExpanded={this.state.navExpanded} >\r\n\r\n    render() {\r\n        return (\r\n\r\n          <Navbar inverse fixedTop toggleNavKey={0} >\r\n            <Nav right eventKey={0} onSelect={this.onSelect} > {/* This is the eventKey referenced */}\r\n              <NavItem eventKey={1} href=\"#\">Link</NavItem>\r\n              <NavItem eventKey={2} href=\"#\">Link</NavItem>\r\n            </Nav>\r\n          </Navbar>     \r\n\r\n      )\r\n\r\n    }\r\n\r\n    componentDidMount() {\r\n\r\n    }\r\n    }\r\n\r\n    React.render(<App />, document.getElementById('example'));"},"comment":{"url":"https://api.github.com/repos/react-bootstrap/react-bootstrap/issues/comments/256774535","html_url":"https://github.com/react-bootstrap/react-bootstrap/issues/1301#issuecomment-256774535","issue_url":"https://api.github.com/repos/react-bootstrap/react-bootstrap/issues/1301","id":256774535,"user":{"login":"taion","id":3112159,"avatar_url":"https://avatars.githubusercontent.com/u/3112159?v=3","gravatar_id":"","url":"https://api.github.com/users/taion","html_url":"https://github.com/taion","followers_url":"https://api.github.com/users/taion/followers","following_url":"https://api.github.com/users/taion/following{/other_user}","gists_url":"https://api.github.com/users/taion/gists{/gist_id}","starred_url":"https://api.github.com/users/taion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/taion/subscriptions","organizations_url":"https://api.github.com/users/taion/orgs","repos_url":"https://api.github.com/users/taion/repos","events_url":"https://api.github.com/users/taion/events{/privacy}","received_events_url":"https://api.github.com/users/taion/received_events","type":"User","site_admin":false},"created_at":"2016-10-27T21:25:37Z","updated_at":"2016-10-27T21:25:37Z","body":"Closed by https://github.com/react-bootstrap/react-bootstrap/pull/2280"}}
{"actor":{"display_login":"taion"}}