Opened 5 years ago

Closed 5 years ago

#10436 closed bug (notabug)

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.

Change History (3)

comment:1 Changed 5 years ago by tj.vantoll

Component: ui.coreui.sortable
Owner: set to 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.

comment:2 Changed 5 years ago by alexwilliams

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.

comment:3 Changed 5 years ago by Scott González

Resolution: notabug
Status: newclosed
Note: See TracTickets for help on using tickets.