From b6aea5531606aa8d8f2697947b8195cdf325c429 Mon Sep 17 00:00:00 2001 From: Rough Industries LLC Date: Sat, 17 Oct 2020 18:48:59 +0200 Subject: [PATCH] Update jquery-sortable.js I embedded a multiple select and it was firing an option and not a select, thought I would add this here to fix that. --- 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 69a1312..946720a 100644 --- a/source/js/jquery-sortable.js +++ b/source/js/jquery-sortable.js @@ -107,7 +107,7 @@ // Called on mousedown. If falsy value is returned, the dragging will not start. // Ignore if element clicked is input, select or textarea onMousedown: function ($item, _super, event) { - if (!event.target.nodeName.match(/^(input|select|textarea)$/i)) { + if (!event.target.nodeName.match(/^(input|select|textarea|option)$/i)) { event.preventDefault() return true }