{"action":"created","issue":{"url":"https://api.github.com/repos/negomi/react-burger-menu/issues/56","repository_url":"https://api.github.com/repos/negomi/react-burger-menu","labels_url":"https://api.github.com/repos/negomi/react-burger-menu/issues/56/labels{/name}","comments_url":"https://api.github.com/repos/negomi/react-burger-menu/issues/56/comments","events_url":"https://api.github.com/repos/negomi/react-burger-menu/issues/56/events","html_url":"https://github.com/negomi/react-burger-menu/issues/56","id":153050454,"number":56,"title":"Unable to close menu after clicking on link","user":{"login":"srsjake","id":8403041,"avatar_url":"https://avatars.githubusercontent.com/u/8403041?v=3","gravatar_id":"","url":"https://api.github.com/users/srsjake","html_url":"https://github.com/srsjake","followers_url":"https://api.github.com/users/srsjake/followers","following_url":"https://api.github.com/users/srsjake/following{/other_user}","gists_url":"https://api.github.com/users/srsjake/gists{/gist_id}","starred_url":"https://api.github.com/users/srsjake/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/srsjake/subscriptions","organizations_url":"https://api.github.com/users/srsjake/orgs","repos_url":"https://api.github.com/users/srsjake/repos","events_url":"https://api.github.com/users/srsjake/events{/privacy}","received_events_url":"https://api.github.com/users/srsjake/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2016-05-04T16:02:05Z","updated_at":"2016-05-08T04:26:09Z","closed_at":"2016-05-08T04:26:08Z","body":"I'm using the menu within a \"body\" component that spans my whole page. I've added the menu as follows and I'm using react router.\r\n\r\n\r\n```\r\nvar Example = React.createClass({\r\n  showSettings: function(event) {\r\n    event.preventDefault();\r\n  },\r\n  render: function() {\r\n    return (\r\n      <Menu right>\r\n        <RadiumLink className=\"menu-item\" to=\"/\">Home</RadiumLink>\r\n        <RadiumLink className=\"menu-item\" to=\"/about\">About</RadiumLink>\r\n        <RadiumLink className=\"menu-item\" to=\"/contact\">Portfolio</RadiumLink>\r\n        <RadiumLink className=\"menu-item\" to=\"/contact\">Contact</RadiumLink>\r\n      </Menu>\r\n    );\r\n  }\r\n}); \r\n```\r\n\r\nand this is its parent\r\n\r\n```\r\nrender: function() {\r\n        return (\r\n                                <div className=\"border\" ref=\"frame\">\r\n            \t\t\t<Example />\t\t\t\t\r\n\t\t\t\t</div>\r\n        );\r\n```\r\n\r\nIf I click on a link, it loads the page just fine however, the menu remains open and I have to either use the close button or click outside the menu to close it. How can I get it to auto-close?\r\n\r\nThank you\r\n"},"comment":{"url":"https://api.github.com/repos/negomi/react-burger-menu/issues/comments/217690630","html_url":"https://github.com/negomi/react-burger-menu/issues/56#issuecomment-217690630","issue_url":"https://api.github.com/repos/negomi/react-burger-menu/issues/56","id":217690630,"user":{"login":"srsjake","id":8403041,"avatar_url":"https://avatars.githubusercontent.com/u/8403041?v=3","gravatar_id":"","url":"https://api.github.com/users/srsjake","html_url":"https://github.com/srsjake","followers_url":"https://api.github.com/users/srsjake/followers","following_url":"https://api.github.com/users/srsjake/following{/other_user}","gists_url":"https://api.github.com/users/srsjake/gists{/gist_id}","starred_url":"https://api.github.com/users/srsjake/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/srsjake/subscriptions","organizations_url":"https://api.github.com/users/srsjake/orgs","repos_url":"https://api.github.com/users/srsjake/repos","events_url":"https://api.github.com/users/srsjake/events{/privacy}","received_events_url":"https://api.github.com/users/srsjake/received_events","type":"User","site_admin":false},"created_at":"2016-05-08T04:26:08Z","updated_at":"2016-05-08T04:26:08Z","body":"That did it, thanks!"}}