mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 06:30:59 +01:00
Support loading children into slots in selects
This commit is contained in:
parent
90c340cf2a
commit
1bba32f088
@ -378,6 +378,20 @@ export const Et2WidgetWithSelectMixin = <T extends Constructor<LitElement>>(supe
|
||||
{
|
||||
this.select_options = new_options;
|
||||
}
|
||||
let others = _node.querySelectorAll(":not(option)");
|
||||
// Load the child nodes.
|
||||
others.forEach((node) =>
|
||||
{
|
||||
let widgetType = node.nodeName.toLowerCase();
|
||||
|
||||
if(widgetType == "#comment" || widgetType == "#text")
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
// Create the new element
|
||||
this.createElementFromNode(node);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user