Skip to main content

Search and Top Navigation

#10436 closed bug (notabug)

Opened July 31, 2014 05:46PM UTC

Closed August 01, 2014 01:06PM UTC

event.preventDefault() in _mouseDown causes problems with sortable tables

Reported by: alexwilliams Owned by: alexwilliams
Priority: minor Milestone: none
Component: ui.sortable Version: 1.10.4
Keywords: Cc:
Blocked by: Blocking:
Description

When making the <tr> tags sortable in a grid, the line

event.preventDefault()
in the function
_mouseDown
within the
ui.mouse
widget can cause the table to stop responding. Removing
event.preventDefault()
seems to resolve the issue with no ill effects.

Attachments (0)
Change History (3)

Changed August 01, 2014 12:06PM UTC by tj.vantoll comment:1

component: ui.coreui.sortable
owner: → alexwilliams
status: newpending

Hi alexwilliams,

Thanks for taking the time to contribute to jQuery UI. Can you please create a reduced test case that shows this behavior? You can use this as a starting point: http://jsfiddle.net/tj_vantoll/4p6QQ/.

Thanks.

Changed August 01, 2014 12:43PM UTC by alexwilliams comment:2

status: pendingnew

Thank you for setting up the fiddle to get me started. I will be sure to any future bugs I find using jsFiddle in the future.

I noticed this particular problem a few weeks ago. Apparently, it was a bug in jQuery.DataTables since after upgrading to the latest version I do not observe this behavior anymore.

Changed August 01, 2014 01:06PM UTC by scottgonzalez comment:3

resolution: → notabug
status: newclosed