Ticket #8094 (closed bug: fixed)

Opened 2 years ago

Last modified 2 years ago

.sortable() after "destroy" does not work

Reported by: zuckel Owned by:
Priority: minor Milestone: 1.8.18
Component: ui.sortable Version: 1.8.17
Keywords: Cc:
Blocking: Blocked by:

Description

In my scenario I need to activate and deactivate sortable lists a lot. After upgrading from 1.8.16 to 1.8.17 my sortables will only work the first time.

Example: <div id="sortStuff">

<div>text</div> <div>text</div> <div>text</div>

</div>

<script> $('#sortStuff').sortable(); $('#sortStuff').sortable("destroy"); $('#sortStuff').sortable(); </script>

Items will be sortable in 1.8.16, but not in 1.8.17.

Change History

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

  • Status changed from new to closed
  • Resolution set to fixed

Sortable: Fixed destroy to remove instance from element. Fixes #8094 - .sortable() after destroy does not work.

Changeset: 4259978d39c6c9d8ce292ad0839d0d42c45400f0

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

Sortable: Fixed destroy method to call parent destroy method. Fixes #8094 - .sortable() after destroy does not work.

Changeset: 988b803be3085111cb8d741b99ab09151dc7f1b5

comment:3 Changed 2 years ago by scott.gonzalez

  • Milestone changed from 1.9 to 1.8.18
Note: See TracTickets for help on using tickets.