Potential issue with Grid

Blocs 5, but just reporting it, incase it’s still an issue in Blocs 6 @Norm

If you delete divs inside a Grid container using the layer tree, and then click on the grid container, all the deleted divs re-appear on the canvas (content is gone though). They do not show in the layer tree, just on the canvas. Then if you delete it on the canvas, using the trash icon, all the empty divs appear on the layer tree. It seems like it’s now stuck, where you have a bunch of empty divs you can not remove. :grimacing:

Confirmed in Blocs 5, it appears to remain the same as you described also in Blocs 6.

When you add a new row (+), Blocs will insert an empty div(s) and then automatically add a class to the div/grid parent that will update the row count.

However, when you remove just the div in the layer tree, the class is not automatically updated, which is not very intuitive (so I’ll improve that).

When you click the delete button, Blocs sees that the class grid row and child div count don’t match so it attempts to correct the issue by inserting new divs, this miss-match check is triggered after you click the trash button.

Anyway, I’ll get it fixed up in the next release, thanks heads up :raising_hands:

2 Likes

No fix for 5 :sweat_smile: