Skip to content
Browse files

Merge branch 'master' of github.com:johnny/jquery-sortable

  • Loading branch information...
2 parents 0f221c6 + 47dc490 commit 603e119c29d83acf2b2e076d535988c54a2a856c @johnny committed Dec 12, 2013
Showing with 6 additions and 3 deletions.
  1. +6 −3 source/js/jquery-sortable.js
View
9 source/js/jquery-sortable.js
@@ -93,9 +93,12 @@
$("body").removeClass("dragging")
},
// Called on mousedown. If falsy value is returned, the dragging will not start.
- onMousedown: function($item, _super, event) {
- event.preventDefault()
- return true
+ // If clicked on input element, ignore
+ onMousedown: function ($item, _super, event) {
+ if (event.target.nodeName != 'INPUT') {
+ event.preventDefault()
+ return true
+ }
},
// Template for the placeholder. Can be any valid jQuery input
// e.g. a string, a DOM element.

0 comments on commit 603e119

Please sign in to comment.
Something went wrong with that request. Please try again.