#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 15 years ago by
Owner: | set to paul |
---|---|
Status: | new → assigned |
comment:2 Changed 15 years ago by
Resolution: | → wontfix |
---|---|
Status: | assigned → closed |
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.