Inputs inside of sortable items are un selectable.
See original GitHub issueI’d like to preface this issue by saying thank you for a really great library. I was using html5sortable before, and this library is so much less buggy.
This line in the current version of the library causes any input or textarea inside a Sortable list to be unclickable.
When the mouse button is released, the event is preventDefault
ed and the cursor is not placed in the text.
This breaks many content management systems that use sortable items.
Here is a jsfiddle demonstrating the problem.
Issue Analytics
- State:
- Created 8 years ago
- Comments:15 (1 by maintainers)
Top Results From Across the Web
4429 (Can't select text in inputs within sortables) - jQuery UI
Text inside a text input element cannot be selected when in a sortable area. I have a demo here: http://mikejestes.com/demo/?demo=jquery_ui_sortable.
Read more >Form inputs inside jQuery draggable objects are uneditable
I'm trying to put a form inside an element, on which jQuery sortable is active. There's a DIV element, which is movable (with...
Read more >Sortable including Inputs Issue in Kendo UI for jQuery - Telerik
If the items being sorted are <input> they seem to become unclickable/editable, you can get to the with the tab key but not...
Read more >Jquery UI Sortable disableSelection Firefox issue with inputs
The sorting of the <tr> rows works perfectly fine but the inputs cannot be edited in Firefox because of the use of "disableSelection()"....
Read more >Use slicers to filter data - Microsoft Support
To select more than one item, hold Ctrl, and then select the items that you want ... A filtering button that is not...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Great, the setting
preventOnFilter:false
with the appropriatefilter:"input"
solves the issue. Thanks!This bug still exists on Edge and Firefox, try any jsfiddle link around here and test with the current Sortable.js. In Firefox the cursor can’t be set on any position, in Edge you can’t do anything inside the textbox