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.
1 parent d1ef32b commit d38ee54Copy full SHA for d38ee54
ngDraggable.js
@@ -45,7 +45,13 @@ angular.module("ngDraggable", [])
45
var initialize = function () {
46
element.attr('draggable', 'false'); // prevent native drag
47
// check to see if drag handle(s) was specified
48
- var dragHandles = element.find('[ng-drag-handle]');
+ // if querySelectorAll is available, we use this instead of find
49
+ // as JQLite find is limited to tagnames
50
+ if (element[0].querySelectorAll) {
51
+ var dragHandles = angular.element(element[0].querySelectorAll('[ng-drag-handle]'));
52
+ } else {
53
+ var dragHandles = element.find('[ng-drag-handle]');
54
+ }
55
if (dragHandles.length) {
56
_dragHandle = dragHandles;
57
}
0 commit comments