Opened 13 years ago

Closed 12 years ago

Last modified 12 years ago

#1770 closed bug (wontfix)

sortable incorrectly reorders ordered list

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

Description

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>

</head>

<body> <ol id="faqlist">

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

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

$('#faqlist').sortable({

smooth: false

});

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

Change History (3)

comment:1 Changed 13 years ago by paul

Owner: set to paul
Status: newassigned

comment:2 Changed 12 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.

comment:3 Changed 12 years ago by (none)

Milestone: 1.2.2

Milestone 1.2.2 deleted

Note: See TracTickets for help on using tickets.