Etemplate: Also expand grids if they're inside a box

This commit is contained in:
nathangray 2020-10-27 16:17:04 -06:00
parent 5566a9d971
commit 7cfbf133cd
2 changed files with 2 additions and 2 deletions

View File

@ -83,7 +83,7 @@ var et2_box = /** @class */ (function (_super) {
}
// Create the new element, if no expansion needed
var id = et2_readAttrWithDefault(node, "id", "");
if (id.indexOf('$') < 0 || widgetType != 'box') {
if (id.indexOf('$') < 0 || ['box', 'grid'].indexOf(widgetType) == -1) {
this.createElementFromNode(node);
childIndex++;
}

View File

@ -93,7 +93,7 @@ export class et2_box extends et2_baseWidget implements et2_IDetachedDOM
// Create the new element, if no expansion needed
var id = et2_readAttrWithDefault(node, "id", "");
if(id.indexOf('$') < 0 || widgetType != 'box')
if(id.indexOf('$') < 0 || ['box','grid'].indexOf(widgetType) == -1)
{
this.createElementFromNode(node);
childIndex++;