Opened 6 years ago

Last modified 5 years ago

#8532 open bug

Sortable: items cannot be changed after init

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

Description

One can set/change options on a sortable element after init'ing it, but this doesn't work for the 'items' option. All items remain draggable/sortable after setting it to a class, or element name.

http://jsfiddle.net/Knhnd/3/

Change History (5)

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

Milestone: 1.9.02.0.0

comment:2 Changed 6 years ago by petersendidit

Status: newopen
Summary: Sortable option 'items' can not be set/changed using sortable('option', ..)Sortable: option 'items' can not be set/changed using sortable('option', ..)

comment:3 Changed 6 years ago by tj.vantoll

Summary: Sortable: option 'items' can not be set/changed using sortable('option', ..)Sortable: Items cannot be removed with the option method

Items can be added using the option method but they cannot be removed. Reduced test case against master: http://jsfiddle.net/tj_vantoll/pjCU9/.

comment:4 Changed 5 years ago by tj.vantoll

Summary: Sortable: Items cannot be removed with the option methodSortable: items cannot be changed after init

You cannot change the items option via the option() method or the refresh() method. Another test case from #9813.

comment:5 Changed 5 years ago by tj.vantoll

#9813 is a duplicate of this ticket.

Note: See TracTickets for help on using tickets.