Fix readonly webcomponents inside a legacy widget were not loaded as readonly

This commit is contained in:
nathan 2021-12-21 10:50:21 -07:00
parent fa707f0627
commit 602ac44c15

View File

@ -803,6 +803,10 @@ export class et2_widget extends ClassWithAttributes
} }
else else
{ {
if(readonly === true && typeof window.customElements.get(_nodeName + "_ro") != "undefined")
{
_nodeName += "_ro";
}
widget = loadWebComponent(_nodeName, _node, this); widget = loadWebComponent(_nodeName, _node, this);
} }
return widget; return widget;