[GH #1985] Redo error with HyperFormula when Adding new row

Tags: #<Tag:0x00007efc6b547888> #<Tag:0x00007efc6b5467a8>

Hello,

I’m experiencing an issue with undo/redo functionality in Handsontable when using it with formulas of HyperFormula, when i add a new row to make the formula in this new row as the others rows. The error occurs under specific circumstances :

  1. Add a new row
  2. Enter a value in this new row
  3. Perform undo ***3times ( with button or with Ctrl+Z)
  4. Perform redo Twice ( with button or with Ctrl+Y)

https://jsfiddle.net/monamrouche/u91q8yL4/1/

At this point, I receive the following error:

ERROR
There is no operation to redo at CrudOperations.redo (http://localhost:3000/static/js/bundle.js:19652:13) at HyperFormula.redo (http://localhost:3000/static/js/bundle.js:25235:26) at Core. (http://localhost:3000/static/js/bundle.js:169437:19) at fastCall (http://localhost:3000/static/js/bundle.js:145024:17) at Hooks.run (http://localhost:3000/static/js/bundle.js:149715:86) at Core.runHooks (http://localhost:3000/static/js/bundle.js:131201:85) at UndoRedo.redo (http://localhost:3000/static/js/bundle.js:185900:42) at callback (http://localhost:3000/static/js/bundle.js:186408:12) at http://localhost:3000/static/js/bundle.js:190131:32 at
HTMLHtmlElement.onkeydown (http://localhost:3000/static/js/bundle.js:190289:7)

so is there a trick to avoid this problem or another way to perform that , even refreshing the webpage when this error occurs , i tried that but i cannot catch this error to refresh the page !

Hi @namrouche993

I checked your example and followed the steps to reproduce the issue, but I’m not able to get any errors. Can you please check if the issue is replicable in this example?

Hi @adrian.szymanski , i’m sorry , perfom undo 3 times instead of 2 ,

Hi @namrouche993

Thanks, now I am able to reproduce this issue. It seems that there might be a fix on the way for, but I need to confirm it. I will update you as soon as I have more information.

Hi @namrouche993

I have an update on this issue. Unfortunately the mentioned fix won’t fix this, as it was confirmed that this is an issue within the Formulas plugin in Handsontable and not HyperFormula itself. I reported this internally and will update you once we have it fixed.