{"action":"created","issue":{"url":"https://api.github.com/repos/angular-ui/bootstrap/issues/2813","labels_url":"https://api.github.com/repos/angular-ui/bootstrap/issues/2813/labels{/name}","comments_url":"https://api.github.com/repos/angular-ui/bootstrap/issues/2813/comments","events_url":"https://api.github.com/repos/angular-ui/bootstrap/issues/2813/events","html_url":"https://github.com/angular-ui/bootstrap/issues/2813","id":45398047,"number":2813,"title":"dropdownService close responed to right click incorrectly by closing the dropdown.","user":{"login":"squareplanetdesign","id":1387873,"avatar_url":"https://avatars.githubusercontent.com/u/1387873?v=3","gravatar_id":"","url":"https://api.github.com/users/squareplanetdesign","html_url":"https://github.com/squareplanetdesign","followers_url":"https://api.github.com/users/squareplanetdesign/followers","following_url":"https://api.github.com/users/squareplanetdesign/following{/other_user}","gists_url":"https://api.github.com/users/squareplanetdesign/gists{/gist_id}","starred_url":"https://api.github.com/users/squareplanetdesign/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/squareplanetdesign/subscriptions","organizations_url":"https://api.github.com/users/squareplanetdesign/orgs","repos_url":"https://api.github.com/users/squareplanetdesign/repos","events_url":"https://api.github.com/users/squareplanetdesign/events{/privacy}","received_events_url":"https://api.github.com/users/squareplanetdesign/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/angular-ui/bootstrap/labels/component:%20dropdown","name":"component: dropdown","color":"ffffff"},{"url":"https://api.github.com/repos/angular-ui/bootstrap/labels/type:%20bug","name":"type: bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2014-10-09T18:05:43Z","updated_at":"2015-03-25T11:44:24Z","closed_at":null,"body":"It should not close the drop-down with right click. It should just allow the browser defaults to happen meaning the context menu.\r\n\r\nA small change would fix this:\r\n\r\n```javascript\r\n                var closeDropdown = function( evt ) {\r\n                    var toggleElement = openScope.getToggleElement();\r\n                    if ( evt && event.which === 1 && toggleElement && toggleElement[0].contains(evt.target) ) {\r\n                        return;\r\n                    }\r\n\r\n                    openScope.$apply(function() {\r\n                        openScope.isOpen = false;\r\n                    });\r\n                };\r\n```"},"comment":{"url":"https://api.github.com/repos/angular-ui/bootstrap/issues/comments/85993592","html_url":"https://github.com/angular-ui/bootstrap/issues/2813#issuecomment-85993592","issue_url":"https://api.github.com/repos/angular-ui/bootstrap/issues/2813","id":85993592,"user":{"login":"Delapouite","id":39315,"avatar_url":"https://avatars.githubusercontent.com/u/39315?v=3","gravatar_id":"","url":"https://api.github.com/users/Delapouite","html_url":"https://github.com/Delapouite","followers_url":"https://api.github.com/users/Delapouite/followers","following_url":"https://api.github.com/users/Delapouite/following{/other_user}","gists_url":"https://api.github.com/users/Delapouite/gists{/gist_id}","starred_url":"https://api.github.com/users/Delapouite/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Delapouite/subscriptions","organizations_url":"https://api.github.com/users/Delapouite/orgs","repos_url":"https://api.github.com/users/Delapouite/repos","events_url":"https://api.github.com/users/Delapouite/events{/privacy}","received_events_url":"https://api.github.com/users/Delapouite/received_events","type":"User","site_admin":false},"created_at":"2015-03-25T11:44:24Z","updated_at":"2015-03-25T11:44:24Z","body":"2 things to consider regarding `event.which === 1` :\r\n- according to MDN, this property is declared as non standard : https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/which\r\n- there seems to be a reverse notation for people configuring their mouse for left-hand use."}}