{"action":"created","issue":{"url":"https://api.github.com/repos/valor-software/ngx-bootstrap/issues/2521","repository_url":"https://api.github.com/repos/valor-software/ngx-bootstrap","labels_url":"https://api.github.com/repos/valor-software/ngx-bootstrap/issues/2521/labels{/name}","comments_url":"https://api.github.com/repos/valor-software/ngx-bootstrap/issues/2521/comments","events_url":"https://api.github.com/repos/valor-software/ngx-bootstrap/issues/2521/events","html_url":"https://github.com/valor-software/ngx-bootstrap/issues/2521","id":253168065,"number":2521,"title":"Error on close a modal with the *ngIf directive","user":{"login":"davidmguerra","id":1731553,"avatar_url":"https://avatars1.githubusercontent.com/u/1731553?v=4","gravatar_id":"","url":"https://api.github.com/users/davidmguerra","html_url":"https://github.com/davidmguerra","followers_url":"https://api.github.com/users/davidmguerra/followers","following_url":"https://api.github.com/users/davidmguerra/following{/other_user}","gists_url":"https://api.github.com/users/davidmguerra/gists{/gist_id}","starred_url":"https://api.github.com/users/davidmguerra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidmguerra/subscriptions","organizations_url":"https://api.github.com/users/davidmguerra/orgs","repos_url":"https://api.github.com/users/davidmguerra/repos","events_url":"https://api.github.com/users/davidmguerra/events{/privacy}","received_events_url":"https://api.github.com/users/davidmguerra/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-08-27T14:45:26Z","updated_at":"2018-02-22T09:41:07Z","closed_at":"2017-08-28T12:20:53Z","author_association":"NONE","body":"An error is occurring when I try to close a modal with the *ngIf directive.\r\n\r\nCode:\r\n\r\n`<button type=\"button\" (click)=\"showModal=true\">`\r\n`\tShow`\r\n`</button>`\r\n`<div *ngIf=\"showModal\" [config]=\"{ show: true }\" bsModal class=\"modal fade\" tabindex=\"-1\" role=\"dialog\" aria-hidden=\"true\">`\r\n`\t<button type=\"button\" (click)=\"showModal=false\">`\r\n`\t\tClose`\r\n`\t</button>`\r\n`</div>`\r\n\r\nWhen I click on close button, the following error is displayed on the console:\r\n\r\n`ERROR TypeError: Cannot read property 'querySelectorAll' of null\r\n    at ModalDirective.webpackJsonp.../../../../ngx-bootstrap/modal/modal.component.js.ModalDirective.focusOtherModal (modal.component.js:278)\r\n    at modal.component.js:208\r\n    at callbackRemove (modal.component.js:237)\r\n    at ZoneDelegate.webpackJsonp.../../../../zone.js/dist/zone.js.ZoneDelegate.invokeTask (zone.js:424)\r\n    at Object.onInvokeTask (core.es5.js:3881)\r\n    at ZoneDelegate.webpackJsonp.../../../../zone.js/dist/zone.js.ZoneDelegate.invokeTask (zone.js:423)\r\n    at Zone.webpackJsonp.../../../../zone.js/dist/zone.js.Zone.runTask (zone.js:191)\r\n    at webpackJsonp.../../../../zone.js/dist/zone.js.ZoneTask.invokeTask (zone.js:498)\r\n    at ZoneTask.invoke (zone.js:487)\r\n    at timer (zone.js:1829)`"},"comment":{"url":"https://api.github.com/repos/valor-software/ngx-bootstrap/issues/comments/367623232","html_url":"https://github.com/valor-software/ngx-bootstrap/issues/2521#issuecomment-367623232","issue_url":"https://api.github.com/repos/valor-software/ngx-bootstrap/issues/2521","id":367623232,"user":{"login":"svinesh3691","id":11581661,"avatar_url":"https://avatars2.githubusercontent.com/u/11581661?v=4","gravatar_id":"","url":"https://api.github.com/users/svinesh3691","html_url":"https://github.com/svinesh3691","followers_url":"https://api.github.com/users/svinesh3691/followers","following_url":"https://api.github.com/users/svinesh3691/following{/other_user}","gists_url":"https://api.github.com/users/svinesh3691/gists{/gist_id}","starred_url":"https://api.github.com/users/svinesh3691/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/svinesh3691/subscriptions","organizations_url":"https://api.github.com/users/svinesh3691/orgs","repos_url":"https://api.github.com/users/svinesh3691/repos","events_url":"https://api.github.com/users/svinesh3691/events{/privacy}","received_events_url":"https://api.github.com/users/svinesh3691/received_events","type":"User","site_admin":false},"created_at":"2018-02-22T09:41:07Z","updated_at":"2018-02-22T09:41:07Z","author_association":"NONE","body":"+1"}}
{"actor":{"display_login":"svinesh3691"}}