ColReorder error after replacing table with 'destroy' option

ColReorder error after replacing table with 'destroy' option

capricodecapricode Posts: 1Questions: 1Answers: 0

Hi,

I'm trying to replace an existing table by passing an destroy option but it seems that ColReorder does not reinitialize its settings object that was set to null on destroy

How to reproduce:

  1. Open http://live.datatables.net/seyonoje/1/edit
  2. Click the 'Show column' button
  3. Try to drag the 'bar' column with mouse.

JavaScript console (in Chrome) will show the following error and the column is not dragged:

Uncaught TypeError: Cannot read property 'mouse' of null

The exception is caused by this line

This discussion has been closed.