Initialization of table fails with this error: TypeError: Cannot read properties of undefined (reading 'wtTable')
// instantiate a new Handsontable
const hotDiv = document.getElementById(hotTarget);
hotInstance.value = new Handsontable(hotDiv, {
licenseKey: hotLicenseKey,
});
After instantiating new hotTable, I do this:
// actually load table
hotInstance.value.loadData(rows);
hotInstance.value.updateSettings({
afterGetColHeader,
colHeaders,
beforeColumnSort,
afterOnCellMouseOver,
afterOnCellMouseOut,
columns,
afterChange,
columnHeaderHeight: 30,
rowHeights: 30,
columnSorting: true,
readOnly: props.readOnly,
dataSchema,
hiddenColumns,
minSpareRows: props.minSpareRows,
});
hotInstance.value.render();
This is same logic that was working in ver.11.
I checked the migration guide and it seems to me that I’m already loading data in a recommended way.
Please advise.