Skip to content

Commit 0f95624

Browse files
committed
feat(draggable): CSS selectors support in ignore_dragging config opt
1 parent 055cc0e commit 0f95624

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/jquery.draggable.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@
350350
return !$(event.target).is(this.options.handle);
351351
}
352352

353-
return $.inArray(event.target.nodeName, this.options.ignore_dragging) >= 0;
353+
return $(event.target).is(this.options.ignore_dragging.join(', '));
354354
};
355355

356356
//jQuery adapter

0 commit comments

Comments
 (0)