Bug Tracker

Opened 12 years ago

Closed 12 years ago

#1840 closed bug (fixed)

sortable smooth false causes parentNode exception

Reported by: rworth Owned by: paul
Priority: critical Milestone: 1.2.2
Component: ui Version: 1.2.1
Keywords: sortable smooth parentNode Cc:
Blocked by: Blocking:

Description

If sortable is called with the smooth option set to false, the following exception occurs:

this.parentNode has no properties file:///C:/trunk/jquery/src/core.js Line 1271

Example code:

<!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>

<ul id="faqlist">

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

</ul>

<script type="text/javascript">

$('#faqlist').sortable({

smooth: false

});

</script>

</body> </html>

Change History (2)

comment:1 Changed 12 years ago by paul

Owner: set to paul
Status: newassigned

comment:2 Changed 12 years ago by paul

Resolution: fixed
Status: assignedclosed

fixed!

Note: See TracTickets for help on using tickets.