Posted 19 June 2021, 5:56 pm EST
We have implemented undo/redo actions manually by associating them with Buttons. however when clicking the the undo or redo buttons. it undo changes across multiple sheets. for example if i copy and paste celss on 3 sheets on a workbook and clcik undo, it reverts changes on all sheets. but th expectation is to undo redo on the activesheet only. i’m wondering, is there is another way to implement undo/redo. below is the code we used.
const spread = GC.Spread.Sheets.findControl(document.getElementById('ss'));
spread.undoManager().undoManager.undo();
Thank you!