fatlinesofcode / ngDraggable

Drag and drop module for Angular JS
MIT License
631 stars 400 forks source link

ng-drag-handle is not working #213

Open kirillbuga opened 8 years ago

kirillbuga commented 8 years ago

var dragHandles = element.find('[ng-drag-handle]');"

JLite 'find' calls findElementsByTagName under the hood, thus it will never find [ng-drag-handle] attribute.

"angular": "1.4.7", "ngDraggable": "0.1.8",

delmotte commented 8 years ago

change : var dragHandles = element.find('[ng-drag-handle]'); by : var dragHandles = angular.element(element[0].querySelectorAll('[ng-drag-handle]'));

line 48

kirillbuga commented 8 years ago

Yeah, I've done this. Do you want me to make a pull request for this? You know, it's not as that good to have a custom build for library.

delmotte commented 8 years ago

Yes i will do it when i'll have time :)

kresli commented 8 years ago

is there a pull request for this?