Problem in columncontrol / colReorder examples (Selected columns)
Problem in columncontrol / colReorder examples (Selected columns)

Link to test case: https://datatables.net/extensions/columncontrol/examples/colReorder/options.html
Debugger code (debug.datatables.net): NA
Error messages shown: NA
Description of problem: Hello,
If I click on the "Position" reorder button, the column goes to the left that is the default behavior.
But, in the example, columns 0 and -1 are not reorderable.
new DataTable('#example', {
colReorder: {
columns: ':not(:first-child, :last-child)'
},
columnControl: ['order', 'reorder'],
columnDefs: [{
targets: [0, -1],
columnControl: ['order']
}],
ordering: {
indicators: false,
handler: false
}
});
Then, I am not able anymore to move the "Position" column once is it has reach the left border.
Is it normal for you or is it a small "bug".
Thanks in advance for your answer and have a nice day.
This question has an accepted answers - jump to answer
Answers
Ooo - that's a good one! There is certainly a bug there. The "Position" column shouldn't be allowed to go to the first column's location. Clicking and dragging doesn't allow it, so there is something in the click only behaviour that is a problem. I'll look into it and post back.
Allan
Fix committed here. The single click without a drag should not move a column.
Allan