{"action":"created","issue":{"url":"https://api.github.com/repos/iprignano/tendina/issues/10","labels_url":"https://api.github.com/repos/iprignano/tendina/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/iprignano/tendina/issues/10/comments","events_url":"https://api.github.com/repos/iprignano/tendina/issues/10/events","html_url":"https://github.com/iprignano/tendina/issues/10","id":58242091,"number":10,"title":"How would I have submenu close when mouse pointer leaves the element?","user":{"login":"sstudebaker","id":11078433,"avatar_url":"https://avatars.githubusercontent.com/u/11078433?v=3","gravatar_id":"","url":"https://api.github.com/users/sstudebaker","html_url":"https://github.com/sstudebaker","followers_url":"https://api.github.com/users/sstudebaker/followers","following_url":"https://api.github.com/users/sstudebaker/following{/other_user}","gists_url":"https://api.github.com/users/sstudebaker/gists{/gist_id}","starred_url":"https://api.github.com/users/sstudebaker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sstudebaker/subscriptions","organizations_url":"https://api.github.com/users/sstudebaker/orgs","repos_url":"https://api.github.com/users/sstudebaker/repos","events_url":"https://api.github.com/users/sstudebaker/events{/privacy}","received_events_url":"https://api.github.com/users/sstudebaker/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-02-19T17:40:57Z","updated_at":"2015-02-19T18:20:50Z","closed_at":"2015-02-19T17:47:51Z","body":"I have built a menu which is working well except I want the menu to close when not hovered on? Thanks for any help."},"comment":{"url":"https://api.github.com/repos/iprignano/tendina/issues/comments/75106371","html_url":"https://github.com/iprignano/tendina/issues/10#issuecomment-75106371","issue_url":"https://api.github.com/repos/iprignano/tendina/issues/10","id":75106371,"user":{"login":"iprignano","id":3172763,"avatar_url":"https://avatars.githubusercontent.com/u/3172763?v=3","gravatar_id":"","url":"https://api.github.com/users/iprignano","html_url":"https://github.com/iprignano","followers_url":"https://api.github.com/users/iprignano/followers","following_url":"https://api.github.com/users/iprignano/following{/other_user}","gists_url":"https://api.github.com/users/iprignano/gists{/gist_id}","starred_url":"https://api.github.com/users/iprignano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iprignano/subscriptions","organizations_url":"https://api.github.com/users/iprignano/orgs","repos_url":"https://api.github.com/users/iprignano/repos","events_url":"https://api.github.com/users/iprignano/events{/privacy}","received_events_url":"https://api.github.com/users/iprignano/received_events","type":"User","site_admin":false},"created_at":"2015-02-19T18:20:50Z","updated_at":"2015-02-19T18:20:50Z","body":"@sstudebaker,\r\n\r\nThe JS code bit is actually working – your problem lies in your styles. As [you can see](http://cl.ly/image/3G0z3n2u2H3O/Screen%20Shot%202015-02-19%20at%2019.16.20.png) the menu width is basically 100% of the window width, so you're never leaving the menu with your mouse.\r\n\r\nTry to give `.nav-menu` a set width (i.e. 300px) and you'll see it'll work out as expected!"}}