mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-14 02:30:56 +01:00
Fix legacy et2_createWidget() did not properly load webComponents when they had "et2-<tag>"
This commit is contained in:
parent
5ab1aaf80c
commit
26d2ea4616
@ -97,9 +97,16 @@ export function et2_createWidget(_name: string, _attrs: object, _parent?: any):
|
||||
}
|
||||
|
||||
// check and return web-components in case widget is no longer available as legacy widget
|
||||
if (typeof et2_registry[_name] === "undefined" && window.customElements.get('et2-'+_name))
|
||||
if(typeof et2_registry[_name] === "undefined")
|
||||
{
|
||||
return loadWebComponent('et2-'+_name, _attrs, _parent);
|
||||
if(window.customElements.get('et2-' + _name))
|
||||
{
|
||||
return loadWebComponent('et2-' + _name, _attrs, _parent);
|
||||
}
|
||||
else if(window.customElements.get(_name))
|
||||
{
|
||||
return loadWebComponent(_name, _attrs, _parent);
|
||||
}
|
||||
}
|
||||
|
||||
// Parse the "readonly" and "type" flag for this element here, as they
|
||||
|
Loading…
Reference in New Issue
Block a user