ColReorder + Buttons.ColVis problem

ColReorder + Buttons.ColVis problem

pawelgpawelg Posts: 2Questions: 1Answers: 0

When using ColReorder extension with Buttons and Buttons.ColVis there is a bug i.e. when user change the order of a columns and manipulate their visibility by clicking one column name it changes the wrong button state (columns show/hide properly, but the buttons are mixed.

This bug can be reproduced on yours example: https://datatables.net/extensions/colreorder/examples/integration/colvis.html
1. move column "position" to another place
2. change the visibility of "position" column

Temporary fix is to comment line 105 "that.active(col.visible());" and add "button.toggleClass('active');" into line 93. But it is only temporary one - this doesn't work for show all/hide all

Answers

This discussion has been closed.