diff --git a/api/js/etemplate/Et2Select/Et2WidgetWithSelectMixin.ts b/api/js/etemplate/Et2Select/Et2WidgetWithSelectMixin.ts index cffcbc495e..76581d63d1 100644 --- a/api/js/etemplate/Et2Select/Et2WidgetWithSelectMixin.ts +++ b/api/js/etemplate/Et2Select/Et2WidgetWithSelectMixin.ts @@ -378,6 +378,20 @@ export const Et2WidgetWithSelectMixin = >(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); + }); } }