Hi Aleksandra,
I too am experiencing an issue similar to this, except for being in the pro version
TypeError: Cannot read property 'indicator' of undefined
at ColumnSorting.onAfterGetColHeader (handsontable.full.js:75551)
at Core.<anonymous> (handsontable.full.js:74892)
at Hooks.run (handsontable.full.js:5449)
at Core.runHooks (handsontable.full.js:38751)
at TableView.appendColHeader (handsontable.full.js:70140)
at GhostTable.addColumn (handsontable.full.js:39030)
at handsontable.full.js:72775
at arrayEach (handsontable.full.js:290)
at handsontable.full.js:72770
at rangeEach (handsontable.full.js:1968)
I am busy trying to track down exactly what is causing this problem. Prior to version 6 there was no problem. Version 3.0.0 works fine.
For me the problem appears when the table increases in the number of columns from say 24 columns to 50.
From column 25 to 50 an exception as above is thrown.
My temporary workaround for the problem is the following: (as pluginSettingsForColumn is undefined for columns 25 to 50)
/**
* Callback for the `onAfterGetColHeader` hook. Adds column sorting CSS classes.
*
* @private
* @param {Number} column Visual column index.
* @param {Element} TH TH HTML element.
*/
}, {
key: 'onAfterGetColHeader',
value: function onAfterGetColHeader(column, TH) {
var headerSpanElement = (0, _utils.getHeaderSpanElement)(TH);
if ((0, _utils.isFirstLevelColumnHeader)(column, TH) === false || headerSpanElement === null) {
return;
}
var physicalColumn = this.hot.toPhysicalColumn(column);
var pluginSettingsForColumn = this.getFirstCellSettings(physicalColumn).columnSorting;
var showSortIndicator = pluginSettingsForColumn ? pluginSettingsForColumn.indicator : false;
var headerActionEnabled = pluginSettingsForColumn ? pluginSettingsForColumn.headerAction : false;
(0, _element.removeClass)(headerSpanElement, this.domHelper.getRemovedClasses(headerSpanElement));
(0, _element.addClass)(headerSpanElement, this.domHelper.getAddedClasses(physicalColumn, showSortIndicator, headerActionEnabled));
}