Skip to content

Commit b4e5c21

Browse files
committed
Allow textareas to gain focus inside sortables
1 parent d864cae commit b4e5c21

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/js/jquery-sortable.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,9 @@
9898
$("body").removeClass("dragging")
9999
},
100100
// Called on mousedown. If falsy value is returned, the dragging will not start.
101-
// If clicked on input element, ignore
101+
// Ignore if element clicked is input, select or textarea
102102
onMousedown: function ($item, _super, event) {
103-
if (!event.target.nodeName.match(/^(input|select)$/i)) {
103+
if (!event.target.nodeName.match(/^(input|select|textarea)$/i)) {
104104
event.preventDefault()
105105
return true
106106
}

0 commit comments

Comments
 (0)