{"action":"created","issue":{"url":"https://api.github.com/repos/twbs/bootstrap/issues/16469","labels_url":"https://api.github.com/repos/twbs/bootstrap/issues/16469/labels{/name}","comments_url":"https://api.github.com/repos/twbs/bootstrap/issues/16469/comments","events_url":"https://api.github.com/repos/twbs/bootstrap/issues/16469/events","html_url":"https://github.com/twbs/bootstrap/issues/16469","id":76096047,"number":16469,"title":"Removing animated modal from DOM prevents modal on-hide cleanup events from occurring","user":{"login":"russplaysguitar","id":103853,"avatar_url":"https://avatars.githubusercontent.com/u/103853?v=3","gravatar_id":"","url":"https://api.github.com/users/russplaysguitar","html_url":"https://github.com/russplaysguitar","followers_url":"https://api.github.com/users/russplaysguitar/followers","following_url":"https://api.github.com/users/russplaysguitar/following{/other_user}","gists_url":"https://api.github.com/users/russplaysguitar/gists{/gist_id}","starred_url":"https://api.github.com/users/russplaysguitar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/russplaysguitar/subscriptions","organizations_url":"https://api.github.com/users/russplaysguitar/orgs","repos_url":"https://api.github.com/users/russplaysguitar/repos","events_url":"https://api.github.com/users/russplaysguitar/events{/privacy}","received_events_url":"https://api.github.com/users/russplaysguitar/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/twbs/bootstrap/labels/js","name":"js","color":"ffc40d"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-05-13T19:28:02Z","updated_at":"2015-06-19T01:23:16Z","closed_at":"2015-06-19T01:10:44Z","body":"Steps to reproduce the issue:\r\n\r\n1. Open an animated modal dialog (modal must have `fade` class).\r\n2. Call `.modal('hide')` and `.remove()` on the modal element.\r\n\r\nExpected result: Modal backdrop should be removed from DOM and `modal-open` class should be removed from `body` tag. \r\n\r\nActual result: Modal is removed from DOM, but modal backdrop remains and `modal-open` class is still on the `body` tag. \r\n\r\nSee test case: [JSFiddle](http://jsfiddle.net/2c4mkndh/11/)\r\n\r\nWorkarounds: \r\nA) Call `.remove()` on `hidden.bs.modal`. \r\nB) Remove `fade` from the modal. \r\n\r\nIt makes sense why this issue occurs (modal DOM removal cleans up the transition event listeners, so cleanup never occurs), but it would be nice if the modal cleanup occurred regardless of whether the modal still exists on the DOM. "},"comment":{"url":"https://api.github.com/repos/twbs/bootstrap/issues/comments/113335278","html_url":"https://github.com/twbs/bootstrap/issues/16469#issuecomment-113335278","issue_url":"https://api.github.com/repos/twbs/bootstrap/issues/16469","id":113335278,"user":{"login":"animafact","id":12730075,"avatar_url":"https://avatars.githubusercontent.com/u/12730075?v=3","gravatar_id":"","url":"https://api.github.com/users/animafact","html_url":"https://github.com/animafact","followers_url":"https://api.github.com/users/animafact/followers","following_url":"https://api.github.com/users/animafact/following{/other_user}","gists_url":"https://api.github.com/users/animafact/gists{/gist_id}","starred_url":"https://api.github.com/users/animafact/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/animafact/subscriptions","organizations_url":"https://api.github.com/users/animafact/orgs","repos_url":"https://api.github.com/users/animafact/repos","events_url":"https://api.github.com/users/animafact/events{/privacy}","received_events_url":"https://api.github.com/users/animafact/received_events","type":"User","site_admin":false},"created_at":"2015-06-19T01:23:16Z","updated_at":"2015-06-19T01:23:16Z","body":"\nNAVER - http://www.naver.com/\n--------------------------------------------\n\nanimafact@naver.com 님께 보내신 메일 <Re: [bootstrap] Removing animated modal from DOM prevents modal on-hide cleanup events from occurring (#16469)> 이 다음과 같은 이유로 전송 실패했습니다.\n\n--------------------------------------------\n\n받는 사람이 회원님의 메일을 수신차단 하였습니다. \n\n\n--------------------------------------------\n"}}