Skip to main content

Search and Top Navigation

#1770 closed bug (wontfix)

Opened October 03, 2007 02:45PM UTC

Closed February 07, 2008 04:56PM UTC

Last modified May 24, 2008 03:39AM UTC

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>

Attachments (0)
Change History (3)

Changed November 05, 2007 03:28PM UTC by paul comment:1

owner: → paul
status: newassigned

Changed February 07, 2008 04:56PM UTC by paul comment:2

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.

Changed May 24, 2008 03:39AM UTC by comment:3

milestone: 1.2.2

Milestone 1.2.2 deleted