Plugin HiddenColumns - show current hidden columns only unhiding every other column (PRO version)

Tags: #<Tag:0x00007efc6abaf078>

I’m having an issue using the plugin “HiddenColumns”. I basically want to use it to show all of the currently hidden columns, but its only showing every other column.

For example, I have the following columns hidden: 0,1,2,3,4,5,6,7,8,9,10

When I run the following code:
var hiddenPlugin = hot.getPlugin(‘hiddenColumns’);
var currentHidden = hiddenPlugin.hiddenColumns;
hiddenPlugin.showColumns(currentHidden);
hot.render();

It shows some columns, but these columns are still hidden: 1,3,5,7,9

If I do it again, the hidden columns go from 1,3,5,7,9 to 3,7.

You can see whats happening in the jsFiddle below.

https://jsfiddle.net/thenoune/jomesefc/2/

Am I doing something wrong with this plugin?

It looks like a bug. Thank you for sharing the issue.
As a temporary fix please use the updateSettings demo https://jsfiddle.net/handsoncode/3ky1t7xd/