{"action":"created","issue":{"url":"https://api.github.com/repos/ng-bootstrap/ng-bootstrap/issues/2343","repository_url":"https://api.github.com/repos/ng-bootstrap/ng-bootstrap","labels_url":"https://api.github.com/repos/ng-bootstrap/ng-bootstrap/issues/2343/labels{/name}","comments_url":"https://api.github.com/repos/ng-bootstrap/ng-bootstrap/issues/2343/comments","events_url":"https://api.github.com/repos/ng-bootstrap/ng-bootstrap/issues/2343/events","html_url":"https://github.com/ng-bootstrap/ng-bootstrap/issues/2343","id":317913326,"node_id":"MDU6SXNzdWUzMTc5MTMzMjY=","number":2343,"title":"ERROR TypeError: Cannot read property 'isEventFrom'","user":{"login":"vlafargue","id":26387042,"node_id":"MDQ6VXNlcjI2Mzg3MDQy","avatar_url":"https://avatars0.githubusercontent.com/u/26387042?v=4","gravatar_id":"","url":"https://api.github.com/users/vlafargue","html_url":"https://github.com/vlafargue","followers_url":"https://api.github.com/users/vlafargue/followers","following_url":"https://api.github.com/users/vlafargue/following{/other_user}","gists_url":"https://api.github.com/users/vlafargue/gists{/gist_id}","starred_url":"https://api.github.com/users/vlafargue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vlafargue/subscriptions","organizations_url":"https://api.github.com/users/vlafargue/orgs","repos_url":"https://api.github.com/users/vlafargue/repos","events_url":"https://api.github.com/users/vlafargue/events{/privacy}","received_events_url":"https://api.github.com/users/vlafargue/received_events","type":"User","site_admin":false},"labels":[{"id":260883237,"node_id":"MDU6TGFiZWwyNjA4ODMyMzc=","url":"https://api.github.com/repos/ng-bootstrap/ng-bootstrap/labels/component:%20dropdown","name":"component: dropdown","color":"ffffff","default":false},{"id":260884034,"node_id":"MDU6TGFiZWwyNjA4ODQwMzQ=","url":"https://api.github.com/repos/ng-bootstrap/ng-bootstrap/labels/needs:%20plunkr%20/%20stackblitz","name":"needs: plunkr / stackblitz","color":"eb6420","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/ng-bootstrap/ng-bootstrap/milestones/3","html_url":"https://github.com/ng-bootstrap/ng-bootstrap/milestone/3","labels_url":"https://api.github.com/repos/ng-bootstrap/ng-bootstrap/milestones/3/labels","id":1317594,"node_id":"MDk6TWlsZXN0b25lMTMxNzU5NA==","number":3,"title":"Purgatory","description":"","creator":{"login":"wesleycho","id":1703387,"node_id":"MDQ6VXNlcjE3MDMzODc=","avatar_url":"https://avatars1.githubusercontent.com/u/1703387?v=4","gravatar_id":"","url":"https://api.github.com/users/wesleycho","html_url":"https://github.com/wesleycho","followers_url":"https://api.github.com/users/wesleycho/followers","following_url":"https://api.github.com/users/wesleycho/following{/other_user}","gists_url":"https://api.github.com/users/wesleycho/gists{/gist_id}","starred_url":"https://api.github.com/users/wesleycho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wesleycho/subscriptions","organizations_url":"https://api.github.com/users/wesleycho/orgs","repos_url":"https://api.github.com/users/wesleycho/repos","events_url":"https://api.github.com/users/wesleycho/events{/privacy}","received_events_url":"https://api.github.com/users/wesleycho/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":163,"state":"open","created_at":"2015-09-22T00:38:33Z","updated_at":"2018-08-09T08:11:57Z","due_on":null,"closed_at":null},"comments":13,"created_at":"2018-04-26T07:45:40Z","updated_at":"2018-08-09T20:13:28Z","closed_at":"2018-04-26T14:34:46Z","author_association":"NONE","body":"### Bug description:\r\n\r\nHello world. since i update the version of ng boostrap from 1.0.0 to 1.1.2 I have an error in my web console.\r\n\r\n![image](https://user-images.githubusercontent.com/26387042/39292393-55e5e926-4936-11e8-934d-f5437c6bf424.png)\r\n\r\n\r\n### Link to minimally-working plunker that reproduces the issue:\r\n\r\nI have issue on this piece of code:\r\n\r\n`    <div ngbDropdown class=\"dropdown\" #myDropGlobal=\"ngbDropdown\">\r\n`and\r\n`    <div ngbDropdown class=\"dropdown\">\r\n`\r\nwich seems good.\r\n\r\n### Version of Angular, ng-bootstrap, and Bootstrap:\r\n\r\nAngular: 5\r\n\r\nng-bootstrap: 1.1.2\r\n\r\nBootstrap: 4.0.0-beta\r\n"},"comment":{"url":"https://api.github.com/repos/ng-bootstrap/ng-bootstrap/issues/comments/411882425","html_url":"https://github.com/ng-bootstrap/ng-bootstrap/issues/2343#issuecomment-411882425","issue_url":"https://api.github.com/repos/ng-bootstrap/ng-bootstrap/issues/2343","id":411882425,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMTg4MjQyNQ==","user":{"login":"WilliamRADFunk","id":10148684,"node_id":"MDQ6VXNlcjEwMTQ4Njg0","avatar_url":"https://avatars3.githubusercontent.com/u/10148684?v=4","gravatar_id":"","url":"https://api.github.com/users/WilliamRADFunk","html_url":"https://github.com/WilliamRADFunk","followers_url":"https://api.github.com/users/WilliamRADFunk/followers","following_url":"https://api.github.com/users/WilliamRADFunk/following{/other_user}","gists_url":"https://api.github.com/users/WilliamRADFunk/gists{/gist_id}","starred_url":"https://api.github.com/users/WilliamRADFunk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WilliamRADFunk/subscriptions","organizations_url":"https://api.github.com/users/WilliamRADFunk/orgs","repos_url":"https://api.github.com/users/WilliamRADFunk/repos","events_url":"https://api.github.com/users/WilliamRADFunk/events{/privacy}","received_events_url":"https://api.github.com/users/WilliamRADFunk/received_events","type":"User","site_admin":false},"created_at":"2018-08-09T20:13:28Z","updated_at":"2018-08-09T20:13:28Z","author_association":"NONE","body":"I had a similar issue @BhoomiInfo. Sometimes it's necessary to have the ngbDropdown directive on a wrapper element like\r\n\r\n```\r\n<div class=\"btn-group\" ngbDropdown>\r\n    <button class=\"btn\" ngbDropdownToggle></button>\r\n    <div ngbDropdownMenu>\r\n        <!-- Your menu stuff -->\r\n    </div>\r\n</div>\r\n```\r\n\r\nPutting it on a button, as the wrapper like in your example code, seems to be the source of your pain.\r\n\r\nNote: I've also observed that if you are toggling from within your component controller code (not referring to your example code), ngbDropdownAnchor might be a better substitute instead of ngbDropdownToggle.\r\n\r\nHope this helps. Good luck to you."}}
{"actor":{"display_login":"WilliamRADFunk"}}