bevacqua / angularjs-dragula

:ok_hand: Drag and drop so simple it hurts
https://bevacqua.github.io/angularjs-dragula
MIT License
509 stars 110 forks source link

drag event fired out of dragula scope #118

Open luizgamabh opened 6 years ago

luizgamabh commented 6 years ago

https://next.plnkr.co/edit/GPLXwtek15cSAZXl

If you try to move the paragraph element that is out of dragula scope it is running the $log at line 8 of app.js. Is it expected? I think the event listener should be delegated to the element where the directive was set or it childs, not?

namtab00 commented 6 years ago

@bevacqua any chance you might look into this ?

invalid gets invoked on any click anywhere in the rootscope...