Sortable: Disablind sorting is not respected when dragging between lists

Created on 14 Jun 2016  路  4Comments  路  Source: SortableJS/Sortable

Sorting is enabled when dragging between lists that have sorting disabled.

Problem

If I initialize three lists with sort: false-option, then sorting _inside_ the list is disabled, but when dragging between lists I can sort the items however I please.

Solution

The behaviour I would expect is more like a drag and drop between "buckets", not _"take item from list A and sort it to the position desired in list B"_.

JSbin

question

All 4 comments

For clarification, you mean you'd like to see it where any new item was ONLY added to the end of the list?

I happen to have a use case where sometimes I want to disable sorting altogether. Then it's really awkward to notice sorting is actually enabled when moving items between lists, because the sorting order will not be respected (in my use case).

Generally I find it a bit weird to allow sorting (in case of moving from list to another) when sorting is disabled in both lists. Kind of enables the user to sort the lists by juggling between two or more lists.

I can of course overcome this issue by implementing an alternate way of dragging and dropping between lists when sorting is disabled, but...

Alas, I cannot help, sort is responsible only sorting into the list, but does not affect the movement between the lists.

I'd find this feature really useful. My users are allowed to move items only between lists and not in the list itself. Since they can position the element wherever they want this confuses them (since they are not allowed to reposition the element). Would be nice to see only one position available in the list and allow them to drop only in that position.

Was this page helpful?
0 / 5 - 0 ratings