colreorder and link in th cell
colreorder and link in th cell

Thanks for this wonderful package!
I have a table, with server side ordering/paging/filtering. In the th header cells there is 1-1 link to sort by the column.
If I enable colreorder it works the following way:
- after beginning to drag the column I have to release the mouse button to enter the "drag mode" (if I hold the button the blue line is not following my mouse movements)
- then I have to click again to drop the column.
(1.10.20 datatables, 1.5.2 colreorder, 70.0.1 FF)
Some events are surely eaten by the link in the cell, but can not understand how to fix it.
Thanks!
Answers
https://codepen.io/vrgblzs/pen/rNaBOVw
Fixed with this:
$('th').on('dragstart', function(e) {
e.preventDefault();
});
This seems to fix the problem above, checking if causing any trouble.
i'm surprised it wasn't working before, that's not a known issue. But if that works, run with it
Colin