From 4909b48241b6c20f4cdef584fe91ee9b1a603d4c Mon Sep 17 00:00:00 2001 From: Abi Narayan Date: Sun, 9 Mar 2014 23:05:43 +0600 Subject: [PATCH] If clicked on select element, ignore Added ignore for select form element --- source/js/jquery-sortable.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/js/jquery-sortable.js b/source/js/jquery-sortable.js index 801fd80..8c93d4d 100644 --- a/source/js/jquery-sortable.js +++ b/source/js/jquery-sortable.js @@ -101,7 +101,7 @@ // Called on mousedown. If falsy value is returned, the dragging will not start. // If clicked on input element, ignore onMousedown: function ($item, _super, event) { - if (event.target.nodeName != 'INPUT') { + if (event.target.nodeName != 'INPUT' && event.target.nodeName != 'SELECT') { event.preventDefault() return true }