Opened 7 years ago

Last modified 6 years ago

#7590 open feature

Sortable: Allow the connectWith option to be updated in a start callback

Reported by: itsmemario Owned by:
Priority: minor Milestone: 2.0.0
Component: ui.sortable Version: 1.8.14
Keywords: Cc:
Blocked by: Blocking:

Description

Hi, i have two connected sortable lists. One element (the element "1.3" in the example) should not be able to drag to the other list. So i disabled the connectwith option in the start-callback for this element sortable("option", "connectWith", false) but i still can drag the element to the second list.

Example: http://jsbin.com/afehod

Change History (7)

comment:1 Changed 7 years ago by Scott González

Type: bugenhancement

That's not a supported use case and we're not making functionality changes for interactions right now. We'll address this in the API redesign for sortable.

comment:2 Changed 6 years ago by Scott González

Type: enhancementfeature

comment:3 Changed 6 years ago by Scott González

#8630 is a duplicate of this ticket.

comment:4 Changed 6 years ago by Scott González

Milestone: 1.9.02.0.0

comment:5 Changed 6 years ago by marventus.wp

Hi itsmemario. I am the author of ticket #8630. I didn't find your ticket before posting mine. I just wanted to tell you that I managed to get it working with a click function outside of the sortable functionality. Sure, it's not ideal or very "clean", but it does the trick. You can check out a working example in the above ticket. Good luck to you!

Last edited 6 years ago by marventus.wp (previous) (diff)

comment:6 Changed 6 years ago by Jörn Zaefferer

Status: newopen

Consider for redesign.

comment:7 Changed 6 years ago by tj.vantoll

Summary: Sortable - disable the connectWith option in the start-callbackSortable: Allow the connectWith option to be updated in a start callback
Note: See TracTickets for help on using tickets.