{"action":"created","issue":{"url":"https://api.github.com/repos/bevacqua/dragula/issues/262","labels_url":"https://api.github.com/repos/bevacqua/dragula/issues/262/labels{/name}","comments_url":"https://api.github.com/repos/bevacqua/dragula/issues/262/comments","events_url":"https://api.github.com/repos/bevacqua/dragula/issues/262/events","html_url":"https://github.com/bevacqua/dragula/issues/262","id":117664042,"number":262,"title":"Cannot read property 'appendChild'","user":{"login":"webchaz","id":1342709,"avatar_url":"https://avatars.githubusercontent.com/u/1342709?v=3","gravatar_id":"","url":"https://api.github.com/users/webchaz","html_url":"https://github.com/webchaz","followers_url":"https://api.github.com/users/webchaz/followers","following_url":"https://api.github.com/users/webchaz/following{/other_user}","gists_url":"https://api.github.com/users/webchaz/gists{/gist_id}","starred_url":"https://api.github.com/users/webchaz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/webchaz/subscriptions","organizations_url":"https://api.github.com/users/webchaz/orgs","repos_url":"https://api.github.com/users/webchaz/repos","events_url":"https://api.github.com/users/webchaz/events{/privacy}","received_events_url":"https://api.github.com/users/webchaz/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/bevacqua/dragula/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-11-18T19:37:53Z","updated_at":"2015-11-20T06:19:08Z","closed_at":null,"body":"I setup a very simple test with the following markup:\r\n\r\n```\r\n    <div id=\"container\">\r\n      <div>Drag Me</div>\r\n      <div>Drag Me 2</div>\r\n    </div>\r\n```\r\nand initialed it using `var drake = dragula([document.querySelector('#container')]);`\r\n\r\nHowever, I'm getting the following error when I attempt to drag an item:   \r\n\r\n```\r\nUncaught TypeError: Cannot read property 'appendChild'\r\nof nullrenderMirrorImage @ dragula.js:426startBecauseMouseMoved @ dragula.js:150\r\n```\r\n\r\nAny idea what the issue could be?  Thanks"},"comment":{"url":"https://api.github.com/repos/bevacqua/dragula/issues/comments/158293491","html_url":"https://github.com/bevacqua/dragula/issues/262#issuecomment-158293491","issue_url":"https://api.github.com/repos/bevacqua/dragula/issues/262","id":158293491,"user":{"login":"netil","id":2178435,"avatar_url":"https://avatars.githubusercontent.com/u/2178435?v=3","gravatar_id":"","url":"https://api.github.com/users/netil","html_url":"https://github.com/netil","followers_url":"https://api.github.com/users/netil/followers","following_url":"https://api.github.com/users/netil/following{/other_user}","gists_url":"https://api.github.com/users/netil/gists{/gist_id}","starred_url":"https://api.github.com/users/netil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/netil/subscriptions","organizations_url":"https://api.github.com/users/netil/orgs","repos_url":"https://api.github.com/users/netil/repos","events_url":"https://api.github.com/users/netil/events{/privacy}","received_events_url":"https://api.github.com/users/netil/received_events","type":"User","site_admin":false},"created_at":"2015-11-20T06:19:08Z","updated_at":"2015-11-20T06:19:08Z","body":"@jaw4ik is because dragula was included in the <head> tag, prior <body> was constructed.\r\nTo solve, just include dragula file inside the <body> tag."}}