[Bug] Can't select/remove/edit gjs-row component if gjs-cell removed first.
Question
Can't choose/select/remove gjs-row after removing gjs-cell separately. Row that is left without cell exists on wrapper but can't be highlighted and selected.
Example:
<img src="https://raw.githubusercontent.com/VelMrnk/Images/master/ezgif.com-video-to-gif-3.gif"></img>
Answers (2)
Hi @VelMrnk this is not a bug, as the row is empty and doesn't have its own height, you can't see it (indeed is still selectable from Layers). If you want to change this behavior it's enough to update the component CSS (eg. using the
min-heightor:emptypseudo-class)
Hi @artf , thanks for response. You are correct, this is css problem, because height doesn't exists. But also, adding of min-height doesn't help for firefox browser. And this is happens because of display:table rule.
So I added css code:
.gjs-row:empty { min-height:60px; display: block ;}
And now it works as it must. Thanks.
Hi @VelMrnk this is not a bug, as the row is empty and doesn't have its own height, you can't see it (indeed is still selectable from Layers). If you want to change this behavior it's enough to update the component CSS (eg. using the min-height or :empty pseudo-class)
Related Questions and Answers
Continue research with similar issue discussions.
Issue #3161
BUG: Editor Undo is removing collection and unable to replace the component
The collection of the selected component before Undo The collection of the selected component after Undo Code to replace the component with...
Issue #5263
BUG: Deleting a component without deleting its corresponding style, will adding new components later cause style conflicts?
GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? latest version of Chrome Reproducible demo...
Issue #2498
[Bug] Error when trying to move cell from row.
Bug #2478 after release still exists. Repeat steps and you will get error Uncaught TypeError: Cannot read property 'indexEl' of undefined....
Issue #3033
While Dragging component to top, removed event is not triggered for another component
<img width="949" alt="Screenshot 2020-09-20 at 10 12 52 AM" src="https://user-images.githubusercontent.com/55732888/93694492-ee644100-fb29-...
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.