handsontable
handsontable copied to clipboard
[Bug]: Undo of removing records works incorrectly when 'minRows' setting is configured
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:
- Configure 'minRows' setting to be at least 1
- In your table select all rows and select to remove them
- 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
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
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.