Bug Tracker

Opened 14 years ago

Closed 14 years ago

#1770 closed bug (wontfix)

sortable incorrectly reorders ordered list

Reported by: thasmin Owned by: paul
Priority: major Milestone: 1.2.2
Component: ui Version: 1.2.1
Keywords: sortable Cc:
Blocked by: Blocking:


When using a sortable where the container is an ordered list, the numbers get messed up. It looks like it adds a new list item to drag and hides the old one because if you have 1,2,3 and pick up 2, 1 and 3 will be there and 4 will be dragable.

<!DOCTYPE html PUBLIC "-W3CDTD XHTML 1.0 TransitionalEN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head>

<title>test</title> <script type="text/javascript" src="../scripts/jquery-1.2.1.js"></script> <script type="text/javascript" src="../scripts/jquery-ui.js"></script>


<body> <ol id="faqlist">

<li>abc</li> <li>def</li> <li>ghi</li>

</ol> <script type="text/javascript">


smooth: false


</script> </body> </html>

Change History (2)

comment:1 Changed 14 years ago by paul

Owner: set to paul
Status: newassigned

comment:2 Changed 14 years ago by paul

Resolution: wontfix
Status: assignedclosed

Hi, that's not fixable. The only thing you can do about it is using the option 'appendTo', and set that to 'body', for example, so the helper will not be appended to the parent.

Note: See TracTickets for help on using tickets.