We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b4bbf57 + d38ee54 commit 840dd1cCopy full SHA for 840dd1c
ngDraggable.js
@@ -51,7 +51,13 @@ angular.module("ngDraggable", [])
51
var initialize = function () {
52
element.attr('draggable', 'false'); // prevent native drag
53
// check to see if drag handle(s) was specified
54
- var dragHandles = element.find('[ng-drag-handle]');
+ // if querySelectorAll is available, we use this instead of find
55
+ // as JQLite find is limited to tagnames
56
+ if (element[0].querySelectorAll) {
57
+ var dragHandles = angular.element(element[0].querySelectorAll('[ng-drag-handle]'));
58
+ } else {
59
+ var dragHandles = element.find('[ng-drag-handle]');
60
+ }
61
if (dragHandles.length) {
62
_dragHandle = dragHandles;
63
}
0 commit comments