question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Inputs inside of sortable items are un selectable.

See original GitHub issue

I’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 preventDefaulted 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:closed
  • Created 8 years ago
  • Comments:15 (1 by maintainers)

github_iconTop GitHub Comments

14reactions
BurninLeocommented, Jun 11, 2021

Great, the setting preventOnFilter:false with the appropriate filter:"input" solves the issue. Thanks!

5reactions
isaaclisgcommented, Jul 31, 2018

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found