diff --git a/jquery.sortable.js b/jquery.sortable.js index 350d172..fb15250 100644 --- a/jquery.sortable.js +++ b/jquery.sortable.js @@ -4,6 +4,9 @@ * * Copyright 2012, Ali Farhadi * Released under the MIT license. + * + * Forked by Dmitriy.trt: + * https://github.com/DmitriyTrt/html5sortable */ (function($) { var dragging, placeholders = $(); @@ -52,7 +55,12 @@ $.fn.sortable = function(options) { dragging.parent().trigger('sortupdate', {item: dragging}); } dragging = null; - }).not('a[href], img').on('selectstart.h5s', function() { + }).not('a[href], img').on('selectstart.h5s', function(e) { + // Allow text selection inside inputs on the IE and Webkit browsers. + if ($(e.target).is(':input')) { + return; + } + this.dragDrop && this.dragDrop(); return false; }).end().add([this, placeholder]).on('dragover.h5s dragenter.h5s drop.h5s', function(e) {