mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 07:53:39 +01:00
Fix template node text children don't overwrite other children
This commit is contained in:
parent
969164e7d3
commit
a834809423
@ -709,7 +709,7 @@ const Et2WidgetMixin = <T extends Constructor>(superClass : T) =>
|
||||
{
|
||||
if(node.data.replace(/^\s+|\s+$/g, ''))
|
||||
{
|
||||
this.innerText = node.data;
|
||||
this.appendChild(node.cloneNode());
|
||||
}
|
||||
continue;
|
||||
}
|
||||
@ -780,6 +780,13 @@ const Et2WidgetMixin = <T extends Constructor>(superClass : T) =>
|
||||
_nodeName = attributes["type"] = this.getArrayMgr('content').expandName(_nodeName);
|
||||
}
|
||||
|
||||
// If using type attribute instead of nodeName makes things invalid, don't
|
||||
// Some widgets use their type attribute
|
||||
if(_node.hasAttribute("type") && !window.customElements.get(_nodeName) && typeof et2_registry[_nodeName] === "undefined" && window.customElements.get(_node.nodeName.toLowerCase()))
|
||||
{
|
||||
_nodeName = _node.nodeName.toLowerCase();
|
||||
}
|
||||
|
||||
let widget;
|
||||
if(undefined == window.customElements.get(_nodeName))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user