https://cdn.jsdelivr.net/npm/handsontable@7.4.2/dist/handsontable.full.min.css
I’ve replicated this in fiddle and it is working for the simple example. In my Django Application I have the same code and I’m getting an exception in onCellMouseUp after updateSettings() returns.
Also, the column is removed and moved to the end with standard excel like lettering “AF.”
Here is the fiddle:
https://jsfiddle.net/ukfqas75/
Here is my function:
function removeColumn(idx) {
default_columns.splice(idx, 1);
display_headers.splice(idx, 1);
for (d of data) {
d.splice(idx, 1);
}
hot.updateSettings({
columns: default_columns,
colHeaders: display_headers,
data: data} );
log(“Made it”);
}
I get “Made it” in the console, then I get this error:
Uncaught Error: The “runHooks” method cannot be called because this Handsontable instance has been destroyed
at t.default.runHooks (handsontable.full.min.js:34:416871)
at Object.onCellMouseUp (handsontable.full.min.js:40:61662)
at e.value (handsontable.full.min.js:34:514976)
at e.value (handsontable.full.min.js:34:493735)
at e.value (handsontable.full.min.js:34:498328)
at HTMLDivElement. (handsontable.full.min.js:34:495661)
at HTMLDivElement.a (handsontable.full.min.js:34:35964)
(anonymous) @ handsontable.full.min.js:34
onCellMouseUp @ handsontable.full.min.js:40
value @ handsontable.full.min.js:34
value @ handsontable.full.min.js:34
value @ handsontable.full.min.js:34
(anonymous) @ handsontable.full.min.js:34
a @ handsontable.full.min.js:34
HOT logs the full hot object, but I can’t copy it. Any suggestions?
Thanks,
Bob