diff --git a/core/xml.ts b/core/xml.ts index c3b2d3ebc..ee72f526b 100644 --- a/core/xml.ts +++ b/core/xml.ts @@ -995,10 +995,7 @@ function domToBlockHeadless( throw TypeError('Shadow block not allowed non-shadow child.'); } } - // Ensure this block doesn't have any variable inputs. - if (block.getVarModels().length) { - throw TypeError('Shadow blocks cannot have variable references.'); - } + block.setShadow(true); } return block;