[GH #142] Undo/redo only works with cell values

Tags: #<Tag:0x00007efc6046bb68> #<Tag:0x00007efc6046b9b0> #<Tag:0x00007efc6046b6b8>

Looks like undo/redo plugin works with cell values, but not cell meta data.

If I run the following:

hot.setDataAtCell(0, 0, 1);
hot.setCellMetaObject(0, 0, {
    type: "numeric", 
    numericFormat: { pattern: "$0,0.00", culture: "en-US" }
});
hot.render();

hot.undo();

I would expect the undo action to revert my last operation (revert the cell type from numeric to text), but instead it removes the cell value but keeps the cell type as numeric.

I tried the same sequence in Excel and Google Sheets and both have this behaviour.

Hi @nicola

We have this issue already reported on our GH, I’ll make sure to let you know when we fix it.