handsontable icon indicating copy to clipboard operation
handsontable copied to clipboard

[Bug]: Undo of removing records works incorrectly when 'minRows' setting is configured

Open alexey-bondar99 opened this issue 1 year ago • 1 comments

Describe the bug

Data array appears to have additional records when Undo is performed for removing rows when 'minRows' setting is configured.

Steps to reproduce:

  1. Configure 'minRows' setting to be at least 1
  2. In your table select all rows and select to remove them
  3. Undo action (Ctrl + Z)

Expected result: Data array is same as it was before executing any actions Actual result: UI seems to be correct, but data array behind it contains additional record(s) depending on 'minRows' setting.

Video/Screenshots

IMAGE 2023-12-19 16:36:50 IMAGE 2023-12-19 16:36:54

Provide a link to the demo with the bug reproduction

https://jsfiddle.net/a6tzxsrk/

Handsontable version

14.0.0

Framework version

No response

Your environment

Windows + Chrome /MacOS + Safari

alexey-bondar99 avatar Dec 19 '23 15:12 alexey-bondar99

HI @alexey-bondar99

Thank you for reporting this. I checked it, and the final result should be different. We should get the same array length as initially set.

I'll report it internally for further investigation.

adrianszymanski89 avatar Dec 20 '23 09:12 adrianszymanski89