-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[8.0.0-beta2-rev8] Undoing removal of nestedrows when all collapsed parents are selected don't work #6941
Comments
Can be related to #6890 |
8.0.0.-beta2-rev-10 still got same bug https://jsfiddle.net/aninde/xmgvnyj5/ |
If the only difference between |
@aninde As @jansiegel mentioned, the difference in headers display is intentional. @jansiegel Undo/redo issue might be a regression? But I think this issue is the same @budnix already solved in #6947. When we remove all rows the columns are not restored. It should be fixed on develop so you can't reproduce it anymore? |
Here's a demo made out of the It is broken really bad, as any interaction with the table throws the same error. |
@AMBudnik latest commit on the develop branch doesn't have |
You're right @wojciechczerniak I guess I got too excited about solving this one... 🙈 Here's the proper demo http://jsfiddle.net/AMBudnik/o1v0z3af/ We do not get any console errors, we're able to get back all the parents with undo. |
@AMBudnik So basically it works like |
@jansiegel true, the regression error is that after removing only the corner remains. However, this is planned, so I think we can close this issue. |
Just a note to @AMBudnik gif. For future generations As you can see the headers are kept in this example. It's because they are deliberately defined in the config and have custom names, therefore they should always be displayed. The columns and rows headers that were kept in v7 and are gone now, are the ones that are generated from the data set. Because the whole data set is removed, there are no rows, nor columns that can (or should) be shown |
@scarletfog this may be useful to you for Release Notes. |
Description
When all collapsed parents rows are selected, removing all of them by
contextMenu
can not be undone.In 8.0.0-rev8 only corner left after that, with is a regression for 7.4.2, where colHeaders stay with the corner.
Expected result: we want to be able to delete rows and undo this operation.
The question remains whether we want nested children-rows to return after the undo.
Case 1
Case 2
Actual result of all cases in 7.4.2, 1.14.0
colHeaders left, cannot undo.
Actual result of all cases in 8.0.0-beta2-rev.8
Only corner left, cannot undo.
Actual result 8.0.0-beta1:
Nothing happens + the same error in console
handsontable.full.js:108164 Uncaught TypeError: Cannot read property '__children' of undefined
handsontable.full.js:108164
Demo
https://jsfiddle.net/wojciech/j4fs38oz - vbeta1 (broken worse, with error in console)
https://jsfiddle.net/aninde/9q5hjobm/1/ - v8.0.0-beta2-rev1 (broken)
https://jsfiddle.net/572Lefpz/ - v7.4.2 (partially fixed, cannot undo)
http://jsfiddle.net/aninde/65ur7aLb/ - v1.14.0 (partially fixed, colHearders stays, cannot undo)
http://jsfiddle.net/aninde/ekLrxap4/ v8.0.0-beta2-rev8 (partially fixed, can not undo, only corner left)
Your environment
The text was updated successfully, but these errors were encountered: