Skip to main content

Search and Top Navigation

#8532 open bug ()

Opened August 30, 2012 02:08PM UTC

Last modified February 12, 2014 01:11PM UTC

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/

Attachments (0)
Change History (5)

Changed October 11, 2012 02:56PM UTC by scottgonzalez comment:1

milestone: 1.9.02.0.0

Changed October 25, 2012 01:27AM UTC by petersendidit comment:2

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', ..)

Changed March 18, 2013 02:30AM UTC by tj.vantoll comment:3

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/.

Changed February 12, 2014 01:11PM UTC by tj.vantoll comment:4

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.

Changed February 12, 2014 01:11PM UTC by tj.vantoll comment:5

#9813 is a duplicate of this ticket.