Skip to content

Commit 9c6ae77

Browse files
Jonas von AndrianJonas von Andrian
authored andcommitted
Merge branch 'master' of github.com:johnny/jquery-sortable
2 parents f1f5973 + 885b131 commit 9c6ae77

File tree

2 files changed

+29
-2
lines changed

2 files changed

+29
-2
lines changed

bower.json

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"name": "jquery-sortable",
3+
"version": "0.9.12",
4+
"homepage": "http://johnny.github.io/jquery-sortable/",
5+
"authors": [
6+
"Jonas von Andrian"
7+
],
8+
"main": "source/js/jquery-sortable.js",
9+
"moduleType": [
10+
"globals"
11+
],
12+
"keywords": [
13+
"sortable",
14+
"sort",
15+
"sorting",
16+
"drag",
17+
"dragging"
18+
],
19+
"license": "MIT",
20+
"ignore": [
21+
"**/.*",
22+
"node_modules",
23+
"bower_components",
24+
"test",
25+
"tests"
26+
]
27+
}

source/js/jquery-sortable.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,9 @@
104104
$("body").removeClass(container.group.options.bodyClass)
105105
},
106106
// Called on mousedown. If falsy value is returned, the dragging will not start.
107-
// If clicked on input element, ignore
107+
// Ignore if element clicked is input, select or textarea
108108
onMousedown: function ($item, _super, event) {
109-
if (!event.target.nodeName.match(/^(input|select)$/i)) {
109+
if (!event.target.nodeName.match(/^(input|select|textarea)$/i)) {
110110
event.preventDefault()
111111
return true
112112
}

0 commit comments

Comments
 (0)