{"action":"opened","issue":{"url":"https://api.github.com/repos/ianmartorell/meteor-accounts-ui-bootstrap-3/issues/159","labels_url":"https://api.github.com/repos/ianmartorell/meteor-accounts-ui-bootstrap-3/issues/159/labels{/name}","comments_url":"https://api.github.com/repos/ianmartorell/meteor-accounts-ui-bootstrap-3/issues/159/comments","events_url":"https://api.github.com/repos/ianmartorell/meteor-accounts-ui-bootstrap-3/issues/159/events","html_url":"https://github.com/ianmartorell/meteor-accounts-ui-bootstrap-3/issues/159","id":104232334,"number":159,"title":"enroll modal doesn't cleanly close","user":{"login":"solace","id":374583,"avatar_url":"https://avatars.githubusercontent.com/u/374583?v=3","gravatar_id":"","url":"https://api.github.com/users/solace","html_url":"https://github.com/solace","followers_url":"https://api.github.com/users/solace/followers","following_url":"https://api.github.com/users/solace/following{/other_user}","gists_url":"https://api.github.com/users/solace/gists{/gist_id}","starred_url":"https://api.github.com/users/solace/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/solace/subscriptions","organizations_url":"https://api.github.com/users/solace/orgs","repos_url":"https://api.github.com/users/solace/repos","events_url":"https://api.github.com/users/solace/events{/privacy}","received_events_url":"https://api.github.com/users/solace/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-09-01T10:04:22Z","updated_at":"2015-09-01T10:04:22Z","closed_at":null,"body":"When completing the enrolment process with the modal, clicking Close or Submit destroys the form component, but the lightbox background doesn't disappear.\r\n\r\nAppears to be related to:\r\nhttps://github.com/ianmartorell/meteor-accounts-ui-bootstrap-3/blob/06b3ab8a52fed8d23d24b08c7d6f272ad2550331/login_buttons_dialogs.js#L116\r\nhttps://github.com/ianmartorell/meteor-accounts-ui-bootstrap-3/blob/06b3ab8a52fed8d23d24b08c7d6f272ad2550331/login_buttons_dialogs.js#L136\r\n\r\nAs `$modal` appears to be unset or not correctly scoped, and overriding the events seems to resolve the issue, eg:\r\n\r\n```\r\n'click #login-buttons-cancel-enroll-account-button': function() {\r\n    var $modal = $('#login-buttons-enroll-account-modal');\r\n    $modal.modal(\"hide\");\r\n}\r\n```\r\n\r\n"}}