Hello. I have a question regarding the HyperFormula plugin.
I am unable to make ‘redo’ work in my table. After 3h of digging ( ) I think I found out where it all goes wrong, so I wanted to ask you:
Why is it that everytime I make a change to my table (and by change I mean I manually change a value inside one of the cells), this method ‘setCellContents
’ from ‘CrudOperations.ts
’ clears the redo stack?
This is the reason I always have an error when I want to redo something in my table:
Yeah… i imagine there is no operation to redo because the redoStack has just been emptied…
I know it’s difficult to understand exactly what is happening, I have no real way to replicate in a jsfiddle my entire behaviour, I have tried, but I really just wanted to understand the reasoning behind the clearRedoStack()
inside the setCellContents
, or when is it specifically that the setCellContents
method is called? Because maybe it’s an error of my side in how I am using the table.
I want to mention a few other things, maybe it matters:
- undo works very well, so it’s just a redo problem
- in my other HoT tables that do not have formulas, undo and redo work perfectly fine, so it’s just the one with the formulas that is creating this issue.
- i have defined my formulas engine like this:
Thank you!