We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b7996fa + 474b9a0 commit 47dc490Copy full SHA for 47dc490
source/js/jquery-sortable.js
@@ -93,9 +93,12 @@
93
$("body").removeClass("dragging")
94
},
95
// Called on mousedown. If falsy value is returned, the dragging will not start.
96
- onMousedown: function($item, _super, event) {
97
- event.preventDefault()
98
- return true
+ // If clicked on input element, ignore
+ onMousedown: function ($item, _super, event) {
+ if (event.target.nodeName != 'INPUT') {
99
+ event.preventDefault()
100
+ return true
101
+ }
102
103
// Template for the placeholder. Can be any valid jQuery input
104
// e.g. a string, a DOM element.
0 commit comments