{"action":"created","issue":{"url":"https://api.github.com/repos/luckylooke/dragular/issues/5","labels_url":"https://api.github.com/repos/luckylooke/dragular/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/luckylooke/dragular/issues/5/comments","events_url":"https://api.github.com/repos/luckylooke/dragular/issues/5/events","html_url":"https://github.com/luckylooke/dragular/issues/5","id":94083901,"number":5,"title":"element nesting makes wrong behavior","user":{"login":"codeyad","id":8481923,"avatar_url":"https://avatars.githubusercontent.com/u/8481923?v=3","gravatar_id":"","url":"https://api.github.com/users/codeyad","html_url":"https://github.com/codeyad","followers_url":"https://api.github.com/users/codeyad/followers","following_url":"https://api.github.com/users/codeyad/following{/other_user}","gists_url":"https://api.github.com/users/codeyad/gists{/gist_id}","starred_url":"https://api.github.com/users/codeyad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codeyad/subscriptions","organizations_url":"https://api.github.com/users/codeyad/orgs","repos_url":"https://api.github.com/users/codeyad/repos","events_url":"https://api.github.com/users/codeyad/events{/privacy}","received_events_url":"https://api.github.com/users/codeyad/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-07-09T15:46:01Z","updated_at":"2015-07-09T18:09:07Z","closed_at":null,"body":"let me explain, if i do something like this : \r\n```html \r\n<div ng-controller=\"exampleCtrl\">\r\n      <div id='left1' class='container'>\r\n        <div>Move me, but you can only drop me in one of these containers.</div>\r\n        <div>If you try to drop me somewhere other than these containers, I'll just come back.</div>\r\n        <div>Item 3.</div>\r\n        <div>Item 6.</div>\r\n      </div>\r\n      <div id='right1' class='container'>\r\n        <div>You can drop me in the left container, otherwise I'll stay here.</div>\r\n        <div>Item 4.</div>\r\n        <div>Item 5.</div>\r\n      </div>    \r\n</div>```\r\n\r\nThis is gonna work as espected, taking the items inside containers but if i do this:\r\n```html \r\n<div ng-controller=\"exampleCtrl\">\r\n   <div class=\"anotherdiv\">\r\n      <div id='left1' class='container'>\r\n        <div>Move me, but you can only drop me in one of these containers.</div>\r\n        <div>If you try to drop me somewhere other than these containers, I'll just come back.</div>\r\n        <div>Item 3.</div>\r\n        <div>Item 6.</div>\r\n      </div>\r\n      <div id='right1' class='container'>\r\n        <div>You can drop me in the left container, otherwise I'll stay here.</div>\r\n        <div>Item 4.</div>\r\n        <div>Item 5.</div>\r\n      </div>\r\n   </div>\r\n</div>```\r\n\r\nis not gonna work as expected just cause the parent div of the containers is not the same that the one that contains the ng-controller."},"comment":{"url":"https://api.github.com/repos/luckylooke/dragular/issues/comments/120089812","html_url":"https://github.com/luckylooke/dragular/issues/5#issuecomment-120089812","issue_url":"https://api.github.com/repos/luckylooke/dragular/issues/5","id":120089812,"user":{"login":"codeyad","id":8481923,"avatar_url":"https://avatars.githubusercontent.com/u/8481923?v=3","gravatar_id":"","url":"https://api.github.com/users/codeyad","html_url":"https://github.com/codeyad","followers_url":"https://api.github.com/users/codeyad/followers","following_url":"https://api.github.com/users/codeyad/following{/other_user}","gists_url":"https://api.github.com/users/codeyad/gists{/gist_id}","starred_url":"https://api.github.com/users/codeyad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codeyad/subscriptions","organizations_url":"https://api.github.com/users/codeyad/orgs","repos_url":"https://api.github.com/users/codeyad/repos","events_url":"https://api.github.com/users/codeyad/events{/privacy}","received_events_url":"https://api.github.com/users/codeyad/received_events","type":"User","site_admin":false},"created_at":"2015-07-09T18:09:07Z","updated_at":"2015-07-09T18:09:07Z","body":"Thanks for your help, now i understand the behavior, would be really cool if one of you can specify that part in the doc :+1: "}}